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

Listbox rendered incorrect when ROD enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 7.0.4
    • Fix Version/s: 7.0.5
    • Component/s: Components
    • Security Level: Jean
    • Labels:
      None

      Description

      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>
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: