In order to not set the size of the combobox


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 in HTML without the attribute “Style”

var z=new dhtmlXCombo(“combo_zone2”,“alfa2”,200);

Thanks you.

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 )