EasyUI Forum
September 14, 2025, 07:14:08 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Combobox height  (Read 7213 times)
galcott
Newbie
*
Posts: 42


View Profile
« 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


View Profile Email
« 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


View Profile
« 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  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!