-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Dear all,
I have a borderlayout with a center region. Inside of center, I have a panel with panelchildren and inside that panelchildren a grid. Now, I need that this grid fills up always the available space in the center region, but I didn't succeeded. It always resizes and uses only a part of the available space. I tried a lot of things with height=100%, hflex and so on, but still it doesnt works ...
<center>
<panel height="100%" >
<panelchildren >
<grid id="resultGrid" mold="paging" pageSize="5" height="100%" >
Hello
use hflex="1" for horizontal space, and vflex="1" for vertical space, on any component's that you want should fill the complete space of it's parent's.
Harish.
Hello Tegomena,
In addition please refer to the following url:
http://books.zkoss.org/wiki/ZKDeveloper%27sReference/UIPatterns/Hflexand_Vflex
And keep in mind that if the parent has no predefined height (i.e., its height is decided by this children), the flexible component won't take any space. To solve it, you have to specify the height of the parent.
Best Regards,
Darksu
Asked: 2015-04-29 15:13:32 +0800
Seen: 14 times
Last updated: May 03 '15