0

Listbox partial visible rows jump/scroll down when selected

asked 2020-12-16 10:18:53 +0800

54patman gravatar image 54patman
13 3

updated 2020-12-24 15:11:28 +0800

cor3000 gravatar image cor3000
5613 2 7
ZK Team

I created this zkfiddle to show the bug:

https://zkfiddle.org/sample/e2ccbl/1-listbox-partial-visible-rows-jump-scroll-down-when-selected

In the center Listbox scroll down until half way down the list. Now from the top row ensure it's slightly or partially visible (ex: you should just see the ZK in the image and not the whole image in that row). Now click that top row that's partially visible. See that the viewport will scroll down and the item is selected. It should not have scrolled. This issue does not happen with the bottom partially visible row, or any row that is fully visible. Only on a top partially visible row.

This was tested in 9.0 and 9.5.

On Chrome the jump down is large and we'll see the listcell a few rows down. On Firefox it simple puts the item in view so that the top of the row is aligned with the top of the list box. How can we disable this? (if we prevent selection via the model or set the listcell as disabled then we get the desired effect of no change. But then I have CSS issues as now all the components have the "disabled" look).

Thanks in advance for any information.

delete flag offensive retag edit

Comments

Is this a known feature? Just like excel ensures a cell is fully on screen? Is this a bug? It happens in version 8.0 with chrome v87. Any way to easily turn this off, I used a lot of tricks and CSS to disable.

54patman ( 2020-12-18 20:49:35 +0800 )edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2020-12-16 10:18:53 +0800

Seen: 9 times

Last updated: Dec 24 '20

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More