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

Sometimes scrollIntoView is not working on Chromium-based browsers

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 8.0.0
    • Fix Version/s: None
    • Component/s: Browser Issue, Components
    • Environment:

      Chrome Version 74.0.3729.169 (Official Build) (64-bit)
      Microsoft Edge Version 76.0.182.6 (Official build) Dev (64-bit)

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: