-
FEATURED COMPONENTS
First time here? Check out the FAQ!
The following code produces a scrolling listbox in a bandbox on ZK 5.0.9. In 5.0.10, the listbox does not scroll; whatever does not fit in the Bandpopup is cut off. Is there something I should be doing differently in 5.0.10 with vflex, or is this a bug?
<window> <bandbox id="bd" mold="rounded" readonly="true" autodrop="true"> <bandpopup width="400px" height="200px"> <listbox vflex="1" sizedByContent="true" span="true" onSelect="bd.value=self.selectedItem.label; bd.close();"> <listhead> <listheader label="Name" /> <listheader label="Description" /> </listhead> <listitem> <listcell label="John" /> <listcell label="CEO" /> </listitem> <listitem> <listcell label="Joe" /> <listcell label="Engineer" /> </listitem> <listitem> <listcell label="Mary" /> <listcell label="Supervisor" /> </listitem> <listitem> <listcell label="Mary" /> <listcell label="Supervisor" /> </listitem> <listitem> <listcell label="Mary" /> <listcell label="Supervisor" /> </listitem> <listitem> <listcell label="Mary" /> <listcell label="Supervisor" /> </listitem> <listitem> <listcell label="Mary" /> <listcell label="Supervisor" /> </listitem> <listitem> <listcell label="Mary" /> <listcell label="Supervisor" /> </listitem> <listitem> <listcell label="Mary" /> <listcell label="Supervisor" /> </listitem> <listitem> <listcell label="Mary" /> <listcell label="Supervisor" /> </listitem> <listitem> <listcell label="Mary" /> <listcell label="Supervisor" /> </listitem> <listitem> <listcell label="Mary" /> <listcell label="Supervisor" /> </listitem> <listitem> <listcell label="Mary" /> <listcell label="Supervisor" /> </listitem> <listitem> <listcell label="Mary" /> <listcell label="Supervisor" /> </listitem> </listbox> </bandpopup> </bandbox> </window>
This looks related: http://www.zkoss.org/forum/listComment/18396
Reported bug: http://tracker.zkoss.org/browse/ZK-773
Hi stephenb,
It works well if you only assign vflex="1",
or only assign sizedByContent="true" (but the horizontal scroll bar appear),
Regards,
ben
Asked: 2012-01-11 20:16:19 +0800
Seen: 438 times
Last updated: Jan 17 '12