About the zk layout

asked 2012-07-05 11:19:54 +0800

safina144 gravatar image safina144

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!
(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">
<label id="lbl_prog_info" value="${c:l('sbi.sbi050.lbl_prog_info')}" />
<panel><panelchildren id="vbox3" >
<listbox fixedLayout="true">
<button id="linkbtn" label="refresh" visible="false"/>

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-07-06 06:21:52 +0800

gganassin gravatar image gganassin flag of Luxembourg
540 6

updated 2012-07-06 06:24:35 +0800

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.

link publish delete flag offensive edit

answered 2012-07-07 02:07:05 +0800

safina144 gravatar image safina144

already fix, thx.^^

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2012-07-05 11:19:54 +0800

Seen: 138 times

Last updated: Jul 07 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More