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

a listbox scrolls to the bottom when all item selected

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.6.1
    • Fix Version/s: 8.6.3
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.6.3 S1

      Description

      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>
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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