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

Scroll position jumps up when clicking on scrollbar

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.0.2, 8.0.4.1
    • Fix Version/s: 8.0.5
    • Component/s: Components
    • Security Level: Jean
    • Labels:
      None
    • Environment:

      so far only reproduced in Chrome
      FF/IE/Edge/Safari don't show this problem

      Description

      Steps to reproduce the issue:

      1. Have a listbox with lots of items and ROD enabled
      2. scroll to the bottom, ROD should be triggered to render the items near the bottom of the listbox
      3. click the scrollbar, should see the scroll position suddenly jumps up, which should not happen.

      <zk>
      	<zscript><![CDATA[
      		ListModelList model = new ListModelList();
      		for (int i = 0; i < 300; i++) {
      			model.add("test " + i);
      		}
      	]]></zscript>
      	<div>
      		<listbox id="box" model="${model}" height="300px">
      			<custom-attributes org.zkoss.zul.listbox.rod="true"/>
      		</listbox>
      	</div>
      </zk>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              DevChu DevChu
              Reporter:
              christopherszu christopherszu
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 7 hours
                  7h