-
20 Nov 2011 7:46 AM #1
BLOCKING PORTRAIT VIEW
BLOCKING PORTRAIT VIEW
Hi all,
I want my application to run only in LANDSCAPE view.How can I block the portrait view?
-
20 Nov 2011 12:54 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
I don't believe you can do this. I could be 100% wrong
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
21 Nov 2011 2:30 AM #3
Is your app running on the www or did you wrap it inside a native app?
If you wrap it inside a native app you can easily achieve that.
However, you could use a simple trick on web apps:
You should monitoring the browser orientation change and when it has been detected, you should just get the page body and rotate it back to its original position using the css rule "-webkit-transform".
For istance:
I'm not sure if it works because I've never tried but it could be a (not elegant) solution.Code:-webkit-transform: rotate(90)
Hope this helps.Sencha Inc
Andrea Cammarata, Solutions Engineer
CEO at SIMACS
@AndreaCammarata
www.andreacammarata.com
github: https://github.com/AndreaCammarata


Reply With Quote