Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2645

Listbox rendered incorrect when ROD enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 7.0.5
    • 7.0.4
    • Components
    • Security Level: Jean
    • None

      This issue happens since 7.0.3. Reproducible sample:

      <zk>
          <zscript><![CDATA[
          ListModelList model = new ListModelList();
          for (int j = 1; j < 201; ++j) {
              model.add("" + j);
          }
          void reset() {
              model.clear();
              for (int j = 1; j < 2001; ++j) {
                  model.add("" + j);
              }
          }
          ]]></zscript>
          <label multiline="true">
          1. Scroll the listbox to most bottom.
          2. Click "Reset" button.
          The listbox scroll position go back to top most but the data didn't show.
          This issue only happened when ROD enabled.
          </label>
          <window>
              <button label="Reset" onClick="reset()" />
              <listbox width="100%" height="400px" model="${model}">
                  <custom-attributes org.zkoss.zul.listbox.rod="true" />
                  <listhead>
                      <listheader label="A" />
                  </listhead>
              </listbox>
          </window>
      </zk>
      

            hanhsu hanhsu
            vincentjian vincentjian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: