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

listbox changes scroll position on selection (huge ROD)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Freshly, 8.6.0, 8.5.2.1
    • Fix Version/s: 8.6.1
    • Component/s: Components
    • Security Level: Jimmy
    • Environment:

      reproduced with Chrome

    • gh.sprint.customfield.default.name:
      ZK 8.6.1 S1

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: