-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Dear all:
Our project use ZK 6.0, we design some zul with java. So we use a window to contain the component, another we have a lot of listbox,
so use the vbox to contain the listbox. but we discover some layout the break the window board, i try long time and many layout cannot solve, i want to know this is a bug or some thing i use wrong.
please help me!
Thanks
(window>vbox>listbox)- but is break out the window layout......, i try change the vbox to table layout, panel layout, column layout can't solve. what can i do?
<window id="win_payment_plan_mgt" title="${c:l('sbi.sbi050.win_payment_plan_mgt')} (SBI050)" contentStyle="padding: 0;" width="auto" height="100%" border="normal" >
<panel><panelchildren id="vbox2" >
<label id="lbl_payment_type" value="${c:l('sbi.sbi050.lbl_payment_type')}" />
<listbox fixedLayout="true">
</listbox>
</panelchildren></panel>
<label id="lbl_prog_info" value="${c:l('sbi.sbi050.lbl_prog_info')}" />
<panel><panelchildren id="vbox3" >
<listbox fixedLayout="true">
</listbox>
</panelchildren></panel>
<button id="linkbtn" label="refresh" visible="false"/>
</window>
</zk>
I'm not able to reproduce your problem using your code: anyway i'm quite sure that the problem is that the size content (panels&listboxes) is unknown to the container (the window) ex-ante.
Try to use vflex & hflex attributes instead of width & height 100%: 9 times over 10 it solves the prob.
http://books.zkoss.org/wiki/ZK%20Developer's%20Reference/UI%20Patterns/Hflex%20and%20Vflex
Asked: 2012-07-05 11:19:54 +0800
Seen: 138 times
Last updated: Jul 07 '12