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 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,897
    Answers
    3970
    Vote Rating
    1329
      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! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  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
  •