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

a listbox scrolls to the bottom when all item selected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.6.3
    • 8.6.1
    • None
    • Security Level: Jimmy
    • None
    • ZK 8.6.3 S1

      Steps to Reproduce

      1. run the attached zul

      Current Result

      scroll bar is at the bottom

      Expected Result

      scroll bar is at the beginning

      Debug Information

      • selecting the last item only also causes the bug.
      • Might require spec discussion. such "scroll to selection" behavior is not always a bug to users.
        1. When a user interacts with UI, a user action leads to selecting a listitem, it's good to scroll to selected one. So that the user can see the result immediately.
        2. During page creation/rendering, a user expects to see the initial state of a listbox, so it's better to let scrollbar be at the top.

      Workaround

      <zk xmlns:n="native" xmlns:w="client">
      <listbox w:onBind="this._shallScrollIntoView=false">
      </listbox>
      </zk>
      

            Leon03 Leon03
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d