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

Wrong position of vertical custom scrollbar if horizontal scroll position was changed

XMLWordPrintable

    • ZK 8.6.2 S2
    • None

      Steps to Reproduce

      run attached zul
      scroll horizontally

      Current Result

      the position of the vertical scrollbar is wrong

      Expected Result

      the position of the vertical scrollbar is right

      Debug Information

      nativebar is okay

      https://github.com/zkoss/zk/blob/v8.6.1/zul/src/archive/web/js/zul/Scrollbar.js#L287
      Since the indicator is hidden, offsetWidth is 0

      https://github.com/zkoss/zk/blob/v8.6.1/zul/src/archive/web/js/zul/Scrollbar.js#L767
      needV is false

      Workaround

      1. Just avoid using custom scrollbar

            rudyhuang rudyhuang
            rudyhuang rudyhuang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Time Spent - 2 hours Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - 2 hours Remaining Estimate - 2 hours
                2h