Results 1 to 3 of 3

Thread: Prevent automatic layout update on orientation change

  1. #1
    Touch Premium Member
    Join Date
    Sep 2011
    Posts
    41
    Answers
    1
    Vote Rating
    0
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,412
    Answers
    3898
    Vote Rating
    1287
      0  

    Default

    layouts are CSS therefore browser controlled. We don't have control to stop the relayout.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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
    443
    Answers
    5
    Vote Rating
    18
      0  

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •