-
Bug
-
Resolution: Fixed
-
Normal
-
8.6.1
-
None
-
Security Level: Jimmy
-
None
-
ZK 8.6.3 S1
-
None
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>