Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

New Contributor
Posts: 4
Registered: ‎02-06-2011
My Device: Not Specified

Screen Orientation using Webworks for the Playbook

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-Development/Detect-screen-orientation-changes-using-JavaS...


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!


Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Screen Orientation using Webworks for the Playbook


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.



Follow me on Twitter: @n_adam_stanley
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
New Contributor
Posts: 5
Registered: ‎01-30-2011
My Device: Not Specified

Re: Screen Orientation using Webworks for the Playbook



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

Posts: 46
Registered: ‎02-16-2011
My Device: 8300>9000>9700>9900>Z10
My Carrier: Vodafone

Re: Screen Orientation using Webworks for the Playbook

[ Edited ]

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