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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      0  

    Default

    layouts are CSS therefore browser controlled. We don't have control to stop the relayout.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    445
    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
  •