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

grouped listbox scroll wrong scrollbar pos

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.5.2
    • Freshly, 8.5.2
    • Components
    • Security Level: Jimmy
    • None

      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)

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

              Created:
              Updated:
              Resolved:

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