-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I found that "height=100%" does not have any effect on a grid if the grid is using a live ListModel. In other words, if you declare "height=100%", the grid's height will ALWAYS stretch to include ALL rows in the ListModel and load them at once (thus the "live" part is gone). You MUST declare something like "height=300px" to effectively use live data. Is this a bug?
The "live" part can be created in a fixed parent, if you wanna set it "100%", you MUST add vflex="true" to it.
then the "live" show again
<listbox id="list" width="200px" height="100%" model="${myModel}" vflex="true">
Why it's not a bug? According to CSS specification height="100%" means the element's height should equal to the height of its container. It does NOT mean the element should compute the height in its own way.
Asked: 2008-11-12 19:26:20 +0800
Seen: 173 times
Last updated: Nov 18 '08