james3905216
Posts: 0
Joined: Thu Feb 09, 2012 9:07 pm

Locking orientation?

How do you lock orientation or limit supported interface orientation to either vertical or horizontal?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Locking orientation?

For mobile web or PhoneGap apps?

james3905216
Posts: 0
Joined: Thu Feb 09, 2012 9:07 pm

Locking orientation?

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!

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Locking orientation?

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...

Return to “Issues”