We’ve noticed that if you then suspend and resume the app by making the device go to sleep, the device will automatically correct the screen layout.
However this is not exactly convenient for users to have to resume and suspend every time they rotate the device, so it’s not really a ‘fix’.
As I said in my first post, our app is heavily reliant on being able to change the screen orientation, and the device does seem to have some way of rectifying the problem that we don’t have access to.
It seems like something that would be an easy fix for corona, and I don’t think it’s unreasonable for developers to ask that their apps support such a basic feature.
This link contains a small demo project which shows the problem, just in case we’re talking about 2 different problems:
https://www.dropbox.com/s/dp6q6ffifv4qf17/orientationTest.zip
It displays the TOTAL available screen space, based on a config.lua with a contentWidth of 768 and a contentHeight of 1024.
On a Nexus 7 the values show as:
Portrait: “Width = 768, Height = 1156”
Landscape: “Width = 1156, Height = 768”
But I would expect both of the height values to be lower than they are to accomodate the navbar if the orientation handler worked correctly on those devices.
You’ll also be able to see that you end up with content being pushed off screen or black borders depending on the orientation / screen-size, even though the positions are correct when the app is first started (regardless of orientation).
If anyone (Ansca or otherwise) has any work-arounds that solve the problem, I would be very happy if they could be shared with us.
Thanks