-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Can anyone tell me why panelchildren content is not displayed when I add a toolbar to the panel?
I tried this out in the zk sandbox, and panelchildren content is only seen when there is no toolbar:
<zk>
<borderlayout height="600px" width="800px">
<west border="normal" size="33%" >
<panel hflex="1" vflex="1" >
<panelchildren>
<div hflex="1" vflex="1" >
<label value="Instructions Instructions Instructions Instructions" />
</div>
</panelchildren>
</panel>
</west>
<center border="normal" >
<panel hflex="1" vflex="1">
<toolbar mold="panel" align="center" >
<button label="Center Button - Top" />
</toolbar>
<panelchildren>
<div hflex="1" vflex="1">
<label value="Instructions Instructions Instructions Instructions" />
</div>
</panelchildren>
</panel>
</center>
<east border="normal" size="33%" >
<panel hflex="1" vflex="1" >
<panelchildren>
<div hflex="1" vflex="1" >
<label value="Instructions Instructions Instructions Instructions" />
</div>
</panelchildren>
<toolbar mold="panel" align="center" >
<button label="East Button - Bottom" />
</toolbar>
</panel>
</east>
</borderlayout>
</zk>
I found a workaround for my problem, but I still think that my original post is a bug.
<borderlayout>
<west border="normal" size="33%" >
<vlayout>
<toolbar mold="panel" align="center">
<button id="easyMode" label="Easy Mode" style="font-size:20px" />
</toolbar>
<label hflex="1" value="Instructions Instructions Instructions Instructions" />
</vlayout>
</west>
<center border="normal" >
<vlayout>
<toolbar mold="panel" align="center">
<button label="Features Mode" style="font-size:20px" />
</toolbar>
<label hflex="1" value="Instructions Instructions Instructions Instructions" />
</vlayout>
</center>
<east border="normal" size="33%" hflex="1" vflex="1" >
<vlayout>
<toolbar mold="panel" align="center">
<button label="Advanced Mode" style="font-size:20px" />
</toolbar>
<label hflex="1" value="Instructions Instructions Instructions Instructions" />
</vlayout>
</east>
</borderlayout>
Asked: 2013-10-10 17:51:09 +0800
Seen: 3 times
Last updated: Oct 10 '13