1

CSS for combobox with scrollbar

asked 2014-12-30 15:37:03 +0800

cyiannoulis gravatar image cyiannoulis
1201 10

updated 2014-12-30 15:39:24 +0800

Recently i was in a need of an auto-complete combobox fetching dynamic content from the database. Then i fall into a problem with the ZK combobox scrolling. In case of multiple search results, the combobox popup takes the height of the page and there are no scroll bars.

So, i used the following style and i am posting this here in case someone else has the same problem:

.searchbox .z-combobox-content {
    max-height: 450px!important; 
    width: 100%;
    overflow: hidden!important;
    overflow-y: scroll!important;
}

<combobox autodrop="true" buttonVisible="true" sclass="searchbox" />

Tested with ZK 7.x and Chrome 39.0.2171.95 / FF 34.0.5

Costas

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-11-02 12:43:04 +0800

nsharma gravatar image nsharma flag of India
917 1 11

updated 2015-11-02 13:00:38 +0800

You can use this:

.z-combobox-popup .z-combobox-open .z-combobox-shadow{
height:40px !important;
}

This should work!
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

Follow
1 follower

RSS

Stats

Asked: 2014-12-30 15:37:03 +0800

Seen: 46 times

Last updated: Nov 02 '15

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