Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by ardjuna on Aug 27, 2008 01:43
open dhtmlx forum
what happens when you need 2 different sizes of the combobox for 2 different selects?

dhtmlxCombo
Dear Sir,
I have the same question as in the following topic (you already answered):
jp, posted: Nov 15, 2007 08:34 | Direct link: http://www.dhtmlx.com/docs/products/kb/index.php?s=normal&q=1237
what happens when you need 2 different sizes of the combobox for 2 different selects? 
You suggested to use <code&gt;#parent1.dhx_combo_list {height: ...}</code&gt;, for each element, but this did not work for me. I tried it, with no result. And I put it at the end of css, so it should have the priority. Please, can you help me? I have 3 elements on the same page (I use td instead of div). All have its own id (combo1, combo2, combo3). When I use
<code&gt;#combo1.dhx_combo_list {height: 150px;}</code&gt;
<code&gt;#combo2.dhx_combo_list {height: 100px;}</code&gt;
<code&gt;#combo3.dhx_combo_list {height: 200px;}</code&gt;,
nothing happens. What am I doing wrong?

Answer posted on Aug 27, 2008 06:44
This can't be solved by using css , buy you can define necessary size directly in js code after combo creation 

var combo = new dhtmlXCombo(...
combo.DOMlist.style.height="100px";//set height of combo list