You found a bug! We've classified it as TOUCH-5094 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Sep 2013
    Location
    India
    Posts
    4
    Vote Rating
    0
    gauravt is on a distinguished road

      0  

    Default Issue with WindowsPhone8 viewport

    Issue with WindowsPhone8 viewport


    I'm building a WindowsPhone8 app using Sencha Touch 2.2. All works quite well, except that I'm stuck at one point:

    When I run the app on the emulator or the device, it starts out covering just a part of the viewport.. something like this:
    wp_ss_20131028_0001.png
    (Select the image to see the bounds)

    When I press the options button (top-left, which pull out a panel from the right) or I change the orientation, it appears just fine (like):
    wp_ss_20131025_0001.png

    I read about setting the "@-ms-viewport" property like:
    Code:
    @-ms-viewport{    width: device-width;
        height: device-height;
    }
    That makes it fullscreen, but the size of everything reduces. Something like:
    wp_ss_20131025_0002.png

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    3,978
    Vote Rating
    132
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      1  

    Default


    Try adding the following config to Ext.application

    Code:
    viewport: {
        width: '100.2%',
        height: '100.2%'
    }
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

    Need more help with your app? Hire Sencha Services services@sencha.com

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

  3. #3
    Sencha User
    Join Date
    Sep 2013
    Location
    India
    Posts
    4
    Vote Rating
    0
    gauravt is on a distinguished road

      0  

    Default


    Works like charm. Thanks

  4. #4
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    3,978
    Vote Rating
    132
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default


    I have decided to open a bug for this issue.

Thread Participants: 1