0

scrolling listbox in bandbox breaks in 5.0.10

asked 2012-01-11 20:16:19 +0800

stephenb gravatar image stephenb
54 1

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>

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2012-01-11 20:24:33 +0800

stephenb gravatar image stephenb
54 1

This looks related: http://www.zkoss.org/forum/listComment/18396

link publish delete flag offensive edit

answered 2012-01-11 21:14:24 +0800

twiegand gravatar image twiegand
1807 3

Try removing the sizedByContent="true" in the <listbox>.

Regards,

Todd

link publish delete flag offensive edit

answered 2012-01-12 13:10:18 +0800

stephenb gravatar image stephenb
54 1

sizedByContent is the issue. Same as http://www.zkoss.org/forum/listComment/18396

link publish delete flag offensive edit

answered 2012-01-12 13:20:16 +0800

stephenb gravatar image stephenb
54 1

updated 2012-01-12 13:20:35 +0800

Reported bug: http://tracker.zkoss.org/browse/ZK-773

link publish delete flag offensive edit

answered 2012-01-17 07:11:32 +0800

benbai gravatar image benbai
2228 6
http://www.zkoss.org

Hi stephenb,

It works well if you only assign vflex="1",
or only assign sizedByContent="true" (but the horizontal scroll bar appear),

Regards,
ben

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

Follow

RSS

Stats

Asked: 2012-01-11 20:16:19 +0800

Seen: 438 times

Last updated: Jan 17 '12

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