Results 1 to 3 of 3

Thread: components extend beyond the viewport

  1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    439
    Vote Rating
    7
      0  

    Default components extend beyond the viewport

    Hi;
    I have a small issue I am sure is solvable. I am using ST2.1
    I have a fixed length components (up to 720px width) yet on my android 4.2 nexus I see half of the component as if the screen is only 350px side. printing the screen.width yields 720 of course.
    I have the following meta tag in my HTML:
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0"/>
    I am not sure how to solve this. I have seen many questions about this in the forum that were all solved by meta viewport. for certain I am missing something or doing something wrong.
    any ideas on where to look?
    thanks.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,412
    Vote Rating
    1288
      0  

    Default

    The Viewport is using 100% width/height, what you should do is have the 720px component within a scrollable container so you can scroll to the rest of the component.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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
    Nov 2010
    Posts
    439
    Vote Rating
    7
      0  

    Default

    thanks; I understand what you said but let me clarify.
    the screen.width is 720 but the view port shows only ~half that. that my problem,. I don't want a a scrollable container. I just need to 720 width component to be shown fully in side the viewport and only just half of it.
    could this have something to do with nesting layouts?
    thanks.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •