combobox does not scroll autocompleted text into view

asked 2017-01-18 14:35:19 +0800

yennor gravatar image yennor
10 2

I have a combobox with autodrop="true" so it automatically opens on the first entered letter. That works. But the autocomplete doesn't work as expected. When the combobox is opened, it doesn't scroll the autocompleted item into view. Which for me would be the expected behaviour. I had the same problem with ZK 5, now I updated to ZK 8 and it seems that there is still the same behaviour? Am I doing something wrong (since years) or is that really the intended behaviour?

With the same ugly fix as i Used in ZK 5 it works (some javascript, see fiddle). But the in viewed scrolled item, is at the bottom of the viewable list not at the top, as most application would do it. Here a short zk fiddle to show the behaviour. The first combobox as it is, where it doesn't scroll the item into view, the second one where it does (with the ugly fix)


Somebody could tell me if that is the indented behaviour, if I'm doing something wrong and if there exists a better solution? thanks a lot in advance :-)

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-03-07 17:19:14 +0800

yennor gravatar image yennor
10 2

ok, if anybody ever gets the same problem, and also finds the same old solution I found then, just replace the javascript code with:


and it should be working.

link publish delete flag offensive edit
Your answer
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

1 follower



Asked: 2017-01-18 14:35:19 +0800

Seen: 47 times

Last updated: Mar 07 '17

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