1. #1
    Sencha User
    Join Date
    Jul 2010
    Location
    Paris, France
    Posts
    257
    Vote Rating
    0
    gabrielstuff is on a distinguished road

      0  

    Default Do nothing onOrientationchange.

    Do nothing onOrientationchange.


    Hi guys !
    Thank you again for this amazing framework.

    I am trying to get a fixed orientation, meaning if orientation change do NOTHING. In iphone this works fine.
    On android if orientation change what ever app is running it will put it on landscape... and I do not want this. I want my app to keep on a old classic portrait mode.

    Any hints ?

    Thank you,

    Gabriel

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,650
    Vote Rating
    583
    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


    That will be the case, unless you actually do something... Need to post your code.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User
    Join Date
    Jul 2010
    Location
    Paris, France
    Posts
    257
    Vote Rating
    0
    gabrielstuff is on a distinguished road

      0  

    Default


    hi Evant,
    Thank you for your fast reply !
    I'll check on this.

  4. #4
    Sencha User
    Join Date
    Jul 2010
    Location
    Paris, France
    Posts
    257
    Vote Rating
    0
    gabrielstuff is on a distinguished road

      0  

    Default


    To anybody that was looking for it. It is actually a android behavior. When ever you are in a web browser or using phonegap the APP switch to landscape/portrait if you move it.
    But ! The thing you can do in the case of phonegap is setup phonegap correcty using androidmanifest.xml
    For more information I think, it should be discussed on phonegap forum.

    Thank you,

Similar Threads

  1. changing scroll direction onOrientationChange
    By cabennett85 in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 3 Aug 2010, 1:17 PM

Thread Participants: 1