Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQueryUI Autocomplete ComboBox Too Long

My jQuery UI AutoComplete ComboBox doesn't have a scrollbar on the right side and gets very, unfortuantely, long as shown below. I'd like to restrain this list to a reasonable length - any thoughts on how that might be accomplished? Thanks!

jQuery UI AutoComplete ComboBox

like image 847
Richard Avatar asked Feb 07 '12 19:02

Richard


1 Answers

You can set the height via CSS:

.ui-autocomplete {     max-height: 600px;     overflow-y: auto;   /* prevent horizontal scrollbar */     overflow-x: hidden; /* add padding to account for vertical scrollbar */     z-index:1000 !important; } 
like image 181
j08691 Avatar answered Sep 23 '22 13:09

j08691