20 Nov 2011 7:46 AM #1
BLOCKING PORTRAIT VIEW
I want my application to run only in LANDSCAPE view.How can I block the portrait view?
20 Nov 2011 12:54 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
I don't believe you can do this. I could be 100% wrongMitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
21 Nov 2011 2:30 AM #3
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".
Hope this helps.