16 May 2012 2:45 AM #1
Unanswered: Prevent automatic layout update on orientation change
In our application, one of the screens has a completely different layout for portrait and landscape modes. So, we are redrawing the components as per the visual design in 'orientationchange' event handler. However the issue is that sencha framework first redraws the layout upon orientation change. Then the 'orientationchange' evnet is triggered. This gives user a feeling of too many things happening on the screen before it settles down.
My question is - how do we prevent the framework from layout changes when orientation changes?
We are using ST2.
'layoutOnOrientationChange' is no longer there in ST2.
18 May 2012 5:25 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
layouts are CSS therefore browser controlled. We don't have control to stop the relayout.
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.
6 Dec 2012 3:49 PM #3
@prasanna_hr: did you ever find a good workaround for this?