Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User interfasys's Avatar
    Join Date
    Mar 2011
    Location
    UK & Switzerland
    Posts
    125
    Vote Rating
    1
    interfasys is on a distinguished road

      0  

    Default [2.2] Ext.Viewport.getOrientation() reports wrong value on BlackBerry 10

    [2.2] Ext.Viewport.getOrientation() reports wrong value on BlackBerry 10


    Sencha Touch version tested:
    • 2.2
    OS tested against:
    • BlackBerry 10
    DOCTYPE tested against:
    • HTML5
    Description:
    • Components like dataview don't listen to events like "orientationchange", so we're relying on the resize event to be able to trigger a test that will determine the device's orientation.
      Unfortunately, the value reported by Ext.Viewport.getOrientation() is not accurate on BlackBerry 10. It could be because the value is defined too late or because using resize is not the proper way of doing it.
    Steps to reproduce the problem:
    • Catch the resize event inside a dataview and print the value of Ext.Viewport.getOrientation() on-screen
    The result that was expected:
    • The message on screen should show the value matching the device's orientation
    The result that occurs instead:
    • It seems the value is always one step behind.
    Last edited by interfasys; 27 Feb 2013 at 12:31 PM. Reason: typo
    Olivier - interfaSys
    Developing custom solutions for BlackBerry 10 using Sencha Touch.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,073
    Vote Rating
    853
    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


    2.2 Beta should be coming out today (unless something happens), when it does can you check with that version?
    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 interfasys's Avatar
    Join Date
    Mar 2011
    Location
    UK & Switzerland
    Posts
    125
    Vote Rating
    1
    interfasys is on a distinguished road

      0  

    Default


    Will do!
    Olivier - interfaSys
    Developing custom solutions for BlackBerry 10 using Sencha Touch.

  4. #4
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Also, what specific device was it for?

    Sencha Inc

    Jamie Avins

    @jamieavins

  5. #5
    Sencha User interfasys's Avatar
    Join Date
    Mar 2011
    Location
    UK & Switzerland
    Posts
    125
    Vote Rating
    1
    interfasys is on a distinguished road

      0  

    Default


    I see the same behaviour on 2.2b1.
    Tested on a Dev Alpha A.
    Olivier - interfaSys
    Developing custom solutions for BlackBerry 10 using Sencha Touch.