We found a strange behaviour regarding orientation changes (build 2012.906).
Corona seems to change the screen’s width and height (as reported by display.contentWidth and display.contentHeight) with EVERY orientation change -even if the new orientation is NOT allowed in the build.settings file. There is also an orientation event fired where event.type is set to the new orientation -also if this orientation is NOT allowed in the build.settings file.
However, if the current orientation is NOT allowed by the build.settings file, the screen matrix is NOT rotated, therefore Corona reports a wrong screen size and a wrong orientation mode then.
This happens on Window, Mac, as well as on the device.
EXAMPLE:
Our app starts in Landscape mode, width and height are 480x320. The only supported orientation modes in the build.settings file are “landscapeLeft” and “landscapeRight”.
If the device is now rotated to portrait mode, Corona fires an orientation event with event.name = “portrait” and display.contentWidth and display.contentHeight report a width of 320 and a height of 480 (portrait mode) -the actual screen matrix, however, is NOT rotated to reflect this!!
If the current orientation is not allowed in the build.settings file (and therefore the device screen matrix itself was not rotated), the screens display.contentWidth and display.contentHeight shouldn’t be changed and event.type should not report any orientation types that are not supported by the build.settings file.
[import]uid: 10504 topic_id: 31882 reply_id: 331882[/import]