Results 1 to 2 of 2

Thread: Container size changes wrong on devices

  1. #1
    Sencha Premium Member
    Join Date
    Aug 2012
    Posts
    14
    Vote Rating
    0
      0  

    Default Container size changes wrong on devices

    See image below:

    My search bar width isn't behaving correctly with percentage widths. The blue Toolbar is set to 100%. Inside I have a centered container set to 90%, and inside of that I have another centered container set to 100%. Those work correctly. And those are holding the text box and the search button.

    I want the text field to occupy 85% of the container, and the button to fill the remaining 15% so I have those widths set in Architect. Both have 5px margins to buffer it inside of the green container. As you can see, the right side isn't doing that and changes depending on size or device. The right side should look exactly like the correct left side.

    Also the Search icon isn't perfectly centered, if anyone has suggestions for that too.


    Search.png

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

    Default

    This is all CSS and browser behavior. Android has had it's issues with CSS positioning.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

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
  •