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

listbox changes scroll position on selection (huge ROD)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 8.6.1
    • Freshly, 8.6.0, 8.5.2.1
    • Components
    • Security Level: Jimmy
    • reproduced with Chrome

    • ZK 8.6.1 S1

      Steps to Reproduce

      <zk>
        <zscript>
          ListModelList model = new ListModelList(Collections.nCopies(100000,"item"));
        </zscript>
        
        <listbox width="200px" height="540px" model="${model}">
          <custom-attributes org.zkoss.zul.listbox.rod="true"/>
          <listhead>
           <listheader label="Load On Demand" sort="auto" />
          </listhead>
        </listbox>
      </zk>
      

      1) run the code
      2) scroll anywhere (using the scrollbar)
      3) select a row

      Current Result

      when selecting the listbox starts to flicker and changes or even loses the current scroll position

      Expected Result

      stable scroll position on selection

      Debug Info

      Root Cause

      Workaround

            DevChu DevChu
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: