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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 8.5.1.3, 9.5.0.1
    • Fix Version/s: None
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:

      Description

      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

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:

                  Time Tracking

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