EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 14, 2025, 04:22:41 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Combobox height
Pages: [
1
]
« previous
next »
Print
Author
Topic: Combobox height (Read 7204 times)
galcott
Newbie
Posts: 42
Combobox height
«
on:
August 23, 2020, 07:09:20 PM »
When using the combobox I noticed that the dropdown panel was usually much too big, even when there were only 2 or 3 choices. It took me quite a long time to figure out that this is controlled by panelHeight which defaults to 200. This needs to be set to 'auto'. Why isn't that the default? It makes no sense to have an arbitrary fixed height when there can be any number of items in the list.
Logged
jarry
Administrator
Hero Member
Posts: 2298
Re: Combobox height
«
Reply #1 on:
August 25, 2020, 04:53:34 AM »
You can set the 'panelHeight' property to 'auto'.
Code:
$('#cc').combobox({
panelHeight: 'auto'
});
Logged
galcott
Newbie
Posts: 42
Re: Combobox height
«
Reply #2 on:
August 26, 2020, 06:19:59 AM »
Yes, as I said I figured that out. But why isn't auto the default?
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...