-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Gurus -
Having some interesting problem on ZK 3.5.1 -
Borderlayout components are not visible within Tab content.
Please see the sample zul here ...
<tabbox width="100%"> <tabs> <tab label="Inbox" /> </tabs> <tabpanels> <tabpanel > <borderlayout height="100%"> <north title="North" maxsize="300" size="50%" splittable="true" collapsible="true"> <borderlayout> <west title="West" size="25%" flex="true" maxsize="250" splittable="true" collapsible="true"> <div style="background:#B8D335"> <label value="25%" style="color:white;font-size:50px" /> </div> </west> <center border="none" flex="true"> <div style="background:#E6D92C"> <label value="25%" style="color:white;font-size:50px" /> </div> </center> <east size="50%" border="none" flex="true"> <label value="Here is a non-border" style="color:gray;font-size:30px" /> </east> </borderlayout> </north> </borderlayout> </tabpanel> </tabpanels> </tabbox>
<borderlayout height="100%">
<borderlayout height="400px">
In most browsers if you want to use "100%" for the height of an element, then you must make sure you have set a height value for ALL the element's parent containers. This is indeed painful, but I guess it's not ZK, it's CSS.
Thanks guys, I looked at the generated html - this is classic CSS DIV height=100% problem.
I need a solution badly because it is a content pane and I don't want to compute height for every resize.
I will try the suggestions made, not sure about the outcome. I will post the result whatever it might be.
Thanks once again.
Asked: 2008-11-06 19:14:28 +0800
Seen: 250 times
Last updated: Nov 07 '08