disable auto-rotation of display
Currently when the device is roated, the widget automatically changes between landscape and portrait display. Our app is not intended to be displayed in landscape orientation, and thus we'd like to have it always display in portrait view.
in other words we want to have nothing happen when the user rotates the device between horizontal and vertical.
Thanks!
Re: disable auto-rotation of display
Hi wildabeast,
take a look at the widget [URL="http://library.forum.nokia.com/index.jsp?topic=/Web_Developers_Library/GUID-A8DAB890-1BB6-42C6-8448-05F38EAFE985.html"]setDisplayLandscape()[/URL] and [URL="http://library.forum.nokia.com/index.jsp?topic=/Web_Developers_Library/GUID-69A2FEC3-0BB7-4165-A473-76F1823A4534.html"]setDisplayPortrait()[/URL] methods.
Pit
Re: disable auto-rotation of display
Thanks Pit. I did see those, and that is my current implementation, calling those functions in the onresize event. However this does cause a momentary screen flash when it is called (the first time only), so I wanted to see if there was a way to simply disable the auto-rotation rather than react to it.
But this solution does work so thanks!