-
18 Feb 2008 7:17 AM #1
[1.1.1] Combo list height
[1.1.1] Combo list height
Hello,
I have read the docs, searched the forum, looked into the source code for the combobox, but for the life of me I cannot find an easy way to set the height of the drop down list.
The only (ugly) solution I could come up with is this:
Oh, and yes, I tried setting the height inside the undocumented property listClass. No luck there either, if I include the !important value then the resize handle is rendered very weird.Code:<style type="text/css"> .x-combo-list { height: 200px !important; } .x-combo-list-inner { height: 191px !important; } </style>
Any suggestions?
Thanks in advance.
-
23 Feb 2008 7:31 AM #2
how about the maxHeight config option?
-
23 Feb 2008 7:57 AM #3
-
23 Feb 2008 8:00 AM #4
It works when I set it. Did you leave your css additions there as well? those may be overriding it.
Is there anything else special about your Combobox declaration?
-
23 Feb 2008 8:25 AM #5
No, I tried it much before I resorted to the aforementioned css solution.
If it works for you then my suspicion is that maybe it doesn't work in certain contexts, like in my case, where the combo is nested inside other elements.
Unfortunately, I'm not at work now, so I can't send you the exact DOM hierarchy, I'll try to do it on Monday.
Thanks for you help!
-
25 Feb 2008 4:38 AM #6
Ok, after closer inspection in Firebug it seems that there was a conflict with another CSS rule in the document.
You are right, maxHeight works fine, thanks!


Reply With Quote