Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Luc on Apr 28, 2009 00:44
open dhtmlx forum
In order to not set the size of the combobox

Hi,
I would like to know if it's possible to not set the width when we create a new combobox.
For example:
I want a combobox with a size in function of his options without the parameter width = 200 like a <Select> in HTML without the attribute "Style"
var z=new dhtmlXCombo("combo_zone2","alfa2",200);
Thanks you.
Answer posted by Support on Apr 28, 2009 13:52
You can define width in percents instead of pixels, but some value need to be provided in any case.
( if no any value was provided - combo will take 100px  width by default )