change the size when the Combo gets the focus

Hello !



I am using the dhtmlxCombo on my netbook.

The size of the normal Form-Fields grows dynamcly when it get’s the focus.



Is this also possible with the dhtmlxCombo


Hello,


combo provides enableOptionAutoWidth method that sets the width of the option list automaticaly (it doesn’t compatible with autocomplete mode).


combo.enableOptionAutoWidth(true);


this method requires dhtmlxcombo_whp.js extention.


There is also setSize method that allows to set a new width for the whole combo.


I tried the setSize-method with the event “onopen”.
But this fires only when the dropdown opens.
Is it possible, that an event fires, when the inputbox of the combo get’s the focus ?


Unfortunately, combo doesn’t provide such event handler.


But DOMelem_input property is combo input object. You can try to use it:


combo.DOMelem_input.onfocus = function(e){


}


Hello Alex !



I did how you told me and it runs.
Thank you for your support !