How do you lock orientation or limit supported interface orientation to either vertical or horizontal?
How do you lock orientation or limit supported interface orientation to either vertical or horizontal?
For mobile web or PhoneGap apps?
I was thinking you might have a nifty checkbox to lock to orientation in the wysiwyg editor Short of that if you have an effective js solution for mobile web that would be great!
The following:
code
$(window).bind('orientationchange resize',function(event){
do something...
})
/code
will detect orientation change but I'm not sure whether you can force a particular orientation, at least for mobile web.
I think there are ways to do it for hybrid apps, for example: http://wiki.phonegap.com/w/page/22863...