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

Sometimes scrollIntoView is not working on Chromium-based browsers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 8.0.0
    • Browser Issue, Components
    • Chrome Version 74.0.3729.169 (Official Build) (64-bit)
      Microsoft Edge Version 76.0.182.6 (Official build) Dev (64-bit)

      Steps to Reproduce

      Use Chromium-based browsers to test
      http://zkfiddle.org/sample/29c7fiq/1-B36-2818308

      1. click "add under bottom" button many times

      Current Result

      There is a low possibility that a newly selected item is not scrolled into view.

      Expected Result

      A newly selected item is always scrolled into view.

      Debug Information

      Only found on Chromium-based browsers.

      https://github.com/zkoss/zk/blob/v8.6.1/zul/src/archive/web/js/zul/sel/SelectWidget.js#L272
      scrollIntoView is called but is not working.

      Workaround

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

              Created:
              Updated: