Results 1 to 4 of 4

Thread: Strange % width calculation

  1. #1
    Basic Member
    Join Date
    Jun 2015
    Posts
    9

    Strange % width calculation

    I have layout with 3 panels. Main panel has 667 desired width. Child panels have 33%/66% width and 223px/445px desired layout width. But it rendered with hole between child panels. Why it is happens? How fix it?
    full.jpgleft.jpgright.jpg

  2. #2
    Basic Member
    Join Date
    Nov 2011
    Posts
    236
    Looking at your first screenshot, it says your Main panel 'Actual Layout Width' is 800px. The gap is probably 800 minus 667 pixels wide.
    Training Map for Last Hitting Under a Tower:
    http://steamcommunity.com/sharedfile.../?id=531587903

  3. #3
    Basic Member
    Join Date
    Jun 2015
    Posts
    9
    4f731e0ff9.jpg
    What's wrong with you css, Valve? Why right aligned panels located at left side?

  4. #4
    Basic Member aveyo's Avatar
    Join Date
    Aug 2012
    Location
    EU West
    Posts
    2,373


    I've started this with multiple aspect ratio support in mind.
    And it was fine in 5:4, it was fine in 16:9, but it magically had a few pixels off here and there on the lower rows in 4:3/16:9.
    Then I realized that the large keys (panels) had variations in size even by changing resolution under the same aspect ratio.
    That's the disadvantage of working with fixed pixels/percentages (and quite possible, a bug in panorama css regarding alignment).
    To obtain the proper result, I made one key on each row with:
    Code:
    width: fill-parent-flow( 1.0 );
    Good luck!

Posting Permissions

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