1. #1
    Touch Premium Member
    Join Date
    Sep 2011
    Posts
    41
    Answers
    1
    Vote Rating
    0
    prasanna_hr is on a distinguished road

      0  

    Default Unanswered: Prevent automatic layout update on orientation change

    Unanswered: Prevent automatic layout update on orientation change


    Hi,

    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.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,404
    Answers
    3549
    Vote Rating
    850
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    layouts are CSS therefore browser controlled. We don't have control to stop the relayout.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    413
    Answers
    5
    Vote Rating
    18
    jweber will become famous soon enough

      0  

    Default


    @prasanna_hr: did you ever find a good workaround for this?

Thread Participants: 2