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

While dragging a scroll thumb, a tree doesn't render treerows in time

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • 9.6.0
    • 8.5.1.3, 9.5.0.1
    • Components
    • Security Level: Jimmy

      Steps to Reproduce

      1. run attached zul
      2. drag the scroll thumb/knob and move down slowly

      Current Result

      the tree doesn't render any treerows unless you stop scrolling
      Tree scroll ZK 9.mp4

      Expected Result

      the tree keeps rendering treerows while scrolling
      Tree scroll ZK 8.mp4

      Debug Information

      • This issue doesn't happen in 8.5.0.1. It starts to happen since 8.5.1.3
      • The reported user thinks the previous behavior provides a better user experience because a user can know the range of items while he is dragging.
      • <custom-attributes org.zkoss.zul.tree.initRodSize="-1"/> is not an option since the items are too many.
      • I have tried <custom-attributes org.zkoss.zul.tree.preloadSize="5"/>, but it doesn't make a tree render while scrolling.

      Workaround

      • <tree>
        <custom-attributes org.zkoss.zul.client.rod="false"/>
        </tree>
      • <custom-attributes org.zkoss.zul.nativebar="false"/> + tree-onrender.js

        1. Tree scroll ZK 9.mp4
          356 kB
        2. Tree scroll ZK 8.mp4
          766 kB
        3. tree-onrender.js
          0.5 kB
        4. TestComposer.java
          0.8 kB
        5. index.zul
          0.6 kB

            rudyhuang rudyhuang
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 10 minutes
                10m