On Wed, Dec 30, 2009 at 4:00 AM, Koen Deforche <[email protected]> wrote:
> Hey,
>
> 2009/12/30 OvermindDL1 <[email protected]>:
>> I am using a WTreeView to handle displaying of a list of users.  You
>> can see it in action at http://overminddl1.no-ip.info:8030/ and login
>> with tester/tester and click Members at the top.  Now I have tried
>> making it fill the full space vertically, but it just will not.  100%
>> height, applying that on every single container in its whole
>> hierarchy, etc...  It just will not go completely vertical in space.
>> Horizontal is no problem, 100% works just fine.  This is not the only
>
> CSS does not support 100% height in the way you would expect it to,
> and the only way to layout things vertically to stretch space is by
> using layout managers (which will rely on JavaScript to handle
> vertical layout).
>
> Except for very specific cases (e.g. in a table cell) the effect of a
> 100% height set on a HTML element is undefined and  browsers will
> implement a different behavior.

I know, and I am using vertical layouts quite heavily.  For example,
the above link, the user list WTreeView is inside a vertical layout,
at the bottom (below the ABCDE... list and the Member List title, the
others have a sizing of 0 and the list has a sizing of 1 so it should
fill the remaining space), and yet the bottom of the vertical list is
still sitting near the top of the screen.  The vertical layout is in a
container, which is inside a stackedwidget, which is displayed by
clicking the menu item Members, and all of that is inside another
vertical layout, which is inside another container, which is inside
another stacked widget of the top menu, which is inside the root
container.

If you inspect the html (firefox, chrome, whatever), you see that the
top menu that contains the bottom one, its stacked widget is taking up
the whole space, and inside that is another container (which according
to the real-time inspection) is not taking up the full space.

However, if I set a pixel size on the view to larger then what it is,
it will stretch it all properly...

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to