Is there a way to auto size combo width (not using setSize method to se fixed width)?
I’m not sure what do you mean by auto - size
If initial width was set in percents, combo will automatically react on window resizing , to maintain percent based size
If you mean size of drop down list, it can be switched to “adjust to content” mode by
I take it, that he’s asking about an “auto size” width method.
I’m trying to do the same thing.
I have 2 COMBO boxes, one affects the other.
The second box does not expand (to the left) to display the entire OPTION as a single line.
I thought that this would work…
Nope. The second box does not open up at all. It maintains its original width.
Please check attached sample
The combo adjust list width if text can’t be split in few lines ( you can force it by adding white-space:nowrap; in combo css )
1197634561.zip (18.8 KB)
Where should I place the “white-space:nowrap” style in dhtmlxcombo.css?
padding:2px 2px 2px 2px;