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

tabbox doesn't scroll the selected tab into the current view when shrinking its width

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • 9.6.3
    • None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      1. shrink the window size to make the tabbox scrollable

      Current Result

      the selected tab is not in the view

      Expected Result

      the selected tab is visible in the view

      Debug Information

      • tabbox moves the selected tab into the current view is the built-in behavior. We can verify this behavior by shrinking the window width again or increase.
      • When a tabbox is scrollable (show left and right arrow icon), if you shrink or increase the window width, the tabbox always move the selected tab into the current view.
      • it's better to refactor _scrollcheck() into several readable functions.

        1. zk-5429.js
          2 kB
        2. zk-5433.zul
          0.9 kB

            DevChu DevChu
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: