safina144
6

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.
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>
</window>
</zk>

delete retag edit

## 2 Replies

gganassin
540 6
http://www.hybris.com/

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

safina144
6

[hide preview]