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.
I believe in the Webcast the comment was referring to the Smartphone version of the WebWorks SDK, where it is possible to develop a custom Java/JavaScript extension that allows you to access and modify the underlying BrowerField object & configuration. This is not currently possible on PlayBook.
02-10-2011 03:51 AM
Hi,
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?
Regards,
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?
UPDATE
Did a bit of searching, this bug has been confirmed but is still open.
https://www.blackberry.com/jira/browse/TABLET-70
I had to bodge my portrait app screenshots using chrome and a bit of photoshop