1. #1
    Ext User
    Join Date
    Jul 2010
    Posts
    3
    Vote Rating
    0
    SuperTron is on a distinguished road

      0  

    Question Preventing orientation changes?

    Preventing orientation changes?


    Hey guys,

    So, I'm having a lot of trouble with floating panels and orientation changes and a tab bar that just likes to keep disappearing, and I was wondering if it is possible to just stop the website from rotating when the user rotates their phone. Does anyone know of a way to do this? Thanks beforehand!

    Cheers,
    Lukas

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,997
    Vote Rating
    649
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    This shouldn't happen, what does your code look like?
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Ext User
    Join Date
    Jul 2010
    Posts
    3
    Vote Rating
    0
    SuperTron is on a distinguished road

      0  

    Default


    Ok well,

    Basically, I have a whole bunch of panels that I hide or show depending on where the user is in the application. One of these panels is called the "mainPanel" which the user gets to after logging in on the login page. This main panel has a toolbar that has 4 tabs and a docked "logout" button. When the program is started, the main panel is hidden, as are any of the panels that are inside it. Once the user logs in, the main panel is shown, and the toolbar(which should be at the bottom) is moved to the top of the page with the setPosition command. The panels that are in the tabbed panel are then also shifted to reflect this change. This entire system works, but the problem arises if the user rotates their phone on the login screen and then enters the main panel. The toolbar then shows up as a vertical black line bar in the top left corner, and the docked logout button disappears. Which section of the code would you like to see? There is too much to put the whole thing in one post. Thanks for the reply!

    Cheers,
    Lukas

Similar Threads

  1. Orientation in Ext-JS grid
    By emmy mathew in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 28 Nov 2013, 1:25 AM
  2. fix orientation
    By Pablo Cabana in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 29 Jun 2010, 1:14 PM
  3. ContentPanel, tabs orientation
    By lalogrosz in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 31 Jul 2007, 8:44 AM
  4. Tab orientation : left
    By Mitu in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 16 Jan 2007, 6:53 AM
  5. Tab Orientation
    By garyrgi in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 7 Nov 2006, 9:49 AM

Thread Participants: 1