02-07-2011 08:20 AM
I was wondering if anyone knows how to detect the screen orientation using Webworks for the Playbook. For handheld devices, I believe this is accomplished using window.orientation; however, window.orientation returns 0 in the emulator (http://supportforums.blackberry.com/t5/Web-Develop
Also, the speaker in one of the webcast mentions that you can not lock the screen orientation to portrait or landscape in Webworks, but also mentions that one of their partners has done so. This was a little ambiguous. Any clarification on this issue would be much appreciated!
02-07-2011 01:13 PM
You can switch orientation of the sim by swiping from the bottom right bevel towards the center of the screen.
02-10-2011 03:51 AM
It seems that when I'm on a portrait orientation and opens an application, the simulator reverts back to the landscape orientation. Is this the correct behavior?
Jay Joel Malaluan
02-27-2011 04:48 PM - edited 02-27-2011 04:58 PM
I have the same issue - the home window and browser apps work in portrait, but mine does not.
If the screen is portrait when you open the app, it reverts to landscape.
When in the app, dragging from the bottom right no longer rotates the screen.
Does anyone have a solution to this?
Did a bit of searching, this bug has been confirmed but is still open.
I had to bodge my portrait app screenshots using chrome and a bit of photoshop