Reputation: 3587
Can someone point me to how this is done with SenchaTouch?
Thanks
Upvotes: 1
Views: 2882
Reputation: 1736
if(Ext.os.is.Android || Ext.os.is.iOS ){
navigator.screenOrientation.set('portrait');
}
Using Phonegap u can do this.
Upvotes: 0
Reputation: 955
If this is on an iOS device you cannot lock the orientation in Safari mobile.
If you are installing it as a web view/hybrid/native app (say with PhoneGap), you can lock the orientation.
Upvotes: 1