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

grouped listbox scroll wrong scrollbar pos

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: Freshly, 8.5.2
    • Fix Version/s: 8.5.2
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:

      Description

      Steps to Reproduce

      run the attached example grouplist-invalidate-scrollpos.zul or grouplist-open-group-scroll.zul

      1. scroll to the bottom of the listbox
      2. close/open the last group

      -> in both cases the second last group will close automatically

      Current Result

      the scroll vertical scrollbar size is inconsistent with the content height

      Expected Result

      consistent scrollheight matching the content height

      Debug Info

      in both cases this happens due to combined onOpen and invalidate
      in grouplist-invalidate-scrollpos.zul invalidate() is called explicitly
      in grouplist-open-group-scroll.zul invalidate is causes because more than 10 listitems get removed when closing "group 3", trying the same with "group 2" doesn't cause the problem

      Workaround

      increasing the invalidateThreshold can avoid the issue

      (commented out in grouplist-open-group-scroll.zul)

        Issue Links

          Activity

          Hide
          Anonymous added a comment -

          Fixed since 2018/07/04

          Show
          Anonymous added a comment - Fixed since 2018/07/04

            People

            • Assignee:
              klyvechen klyvechen
              Reporter:
              cor3000 cor3000
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified