9 Nov 2011 3:23 PM #1
Answered: Left-docked Toolbar when landscape orientation
I have a mobile app. Is there a possibility to adjust the Ext.Toolbar docking depending on the orientation of the device, e.g., dock to the top when portrait and dock to the left when landscape. How could I solve that?
Ext.viewport.Default fires an 'orientationchange' event that you can listen to and move your docked component.
16 Nov 2011 1:41 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Ext.viewport.Default fires an 'orientationchange' event that you can listen to and move your docked component.Mitchell Simoens @LikelyMitch
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.