PDA

View Full Version : [1.1.1] Combo list height



digeomel
18 Feb 2008, 7:17 AM
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:



<style type="text/css">
.x-combo-list {
height: 200px !important;
}
.x-combo-list-inner {
height: 191px !important;
}
</style>


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.

Any suggestions?

Thanks in advance.

RWaters
23 Feb 2008, 7:31 AM
how about the maxHeight config option?

digeomel
23 Feb 2008, 7:57 AM
how about the maxHeight config option?

Doesn't work. It is being ignored.

RWaters
23 Feb 2008, 8:00 AM
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?

digeomel
23 Feb 2008, 8:25 AM
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!

digeomel
25 Feb 2008, 4:38 AM
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! :D