Problem with HBox Splitter And Components

asked 2011-10-17 16:10:40 +0800

divide0 gravatar image divide0

I am trying to learn ZK, and I am running into issues. I am trying to have a HBox layout containing a Tree control, but the splitters do not seem to resize properly. Dragging the splitters only works intermittently. After I collapse the left side, I expand it and the right side is no longer resizeable. Am I doing something wrong?

To see the behavior I am writing about, load the following demo url and paste the code in to the source window.


Source code:

<panel title="Splitter" border="normal" width="500px">
<hbox spacing="0" width="100%" height="100%">
<vbox spacing="0" heights="100px,100px">
Column 1-1: The left-top box. To know whether a splitter
is collapsed, you can listen to the onOpen event.
<splitter id="s1" collapse="before"/>
Column 1-2: You can enforce to open or collapse programming
by calling setOpen method.
<splitter id="s2" collapse="before"/>
<tree id="myTree">
<treecol label="Name" />
<treecell label="Test" />

<button label="change style">
<attribute name="onClick">
if ("z-splitter-ver".equals(s1.getZclass()))
if ("z-splitter-hor".equals(s2.getZclass()))

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2011-10-20 02:03:36 +0800

matthewgo gravatar image matthewgo

updated 2011-10-20 02:04:37 +0800

Hi divide0,

Thanks for your report.
This is a bug , please follow the tracker

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: 2011-10-17 16:10:40 +0800

Seen: 229 times

Last updated: Oct 20 '11

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