dhtmlxCombo enableOptionAutoWidth Bug

I got an error in enableOptionAutoWidth for dhtmlxcombo. if you initiate a dhxcombo for a variable name other than z. it will throw an error.



Like:



var z_other=new dhtmlXCombo(“combo_zone”,“alfa”,200);

z_other.loadXML(“data.xml”);

z_other.enableOptionAutoWidth (true);



Using dhx version 2 professional ed.

Please fix the bug in ext/dhtmlxcombo_whp.js file on line 85 inside function enableOptionAutoWidth .



Thanks,

Tosh

Please, try to use the attached file instead of the original.  It should fix the issue.




dhtmlxcombo_whp.zip (1.11 KB)

Confirmed.

Thanks…
Tosh