Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    65
    Vote Rating
    1
    warrean is on a distinguished road

      0  

    Default Orientation event: timing problem gives resolution problem in Android stock browser

    Orientation event: timing problem gives resolution problem in Android stock browser


    REQUIRED INFORMATION
    Ext version tested:
    • Sencha Touch 2.0.1.1
    Browser versions tested against:
    • Android Stock Browser 4.0.3
    Description:
    When changing orientation mode often (70%+) the layout will be rendered to what seems like the previous orientation-mode resolution. So e.g. in portrait mode it will only use 55% of the heights screen, and only half of the pages width will show because the devices screen width is too small.

    Steps to reproduce the problem:
    • Create app and use the Main.js / LoginView.js code of (http://www.sencha.com/forum/showthre...negap-Android))
    • build a production version (sencha app build production)
    • Visit page through devices browser
    • change orientation a few times until its rendering fails to fill screen properly
    The result that was expected:
    • Screen keeps its correct rendering
    The result that occurs instead:
    • Screen has bad rendering
    HELPFUL INFORMATION
    Possible fix:
    Interesting notes:
    • Android Stock Browser 2.0.3 doesn't show this problem
    • On Android Stock Browser 4.0.3, it seems Sencha corrects the view on the non-production code (so non-minified)
    Other people with similar problem:Presumably this problem is because the stock browser sets the correct parameters window.innerWidth/Height only after Sencha reads them, so it seems like a timing problem.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,548
    Vote Rating
    872
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Have you tried in a newer release like 2.1.0 RC1?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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
    Sep 2012
    Posts
    65
    Vote Rating
    1
    warrean is on a distinguished road

      0  

    Default


    Hi, it looks like it's more stable now with this upgrade.
    • I've tested on Android 2.0.3 and no problems (as before)
    • 4.0.4 now on first load seems stuck in portrait mode, even if i change orientation.
      On refresh however it's fine and so far it hasn't messed up the resolution.
      (this is sort of the opposite as before, when on first load I think 99% of the time it would work)
    I've found this person who what seems like has the exact same problem:
    http://www.sencha.com/forum/showthre...l=1#post802688

    and then this person who has seemingly the same problem:
    http://www.sencha.com/forum/showthre...aks-the-layout

Thread Participants: 1

Tags for this Thread