Xtian
Xtian

Reputation: 3587

SenchaTouch Lock screen so it does not go into Landscape?

Can someone point me to how this is done with SenchaTouch?

Thanks

Upvotes: 1

Views: 2882

Answers (2)

RED.Skull
RED.Skull

Reputation: 1736

  if(Ext.os.is.Android || Ext.os.is.iOS ){
            navigator.screenOrientation.set('portrait');
        }

Using Phonegap u can do this.

Upvotes: 0

ballmw
ballmw

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

Related Questions