Hello guys:
i’ve a javascript error appears randomly on IE8 when i load the gantt chart from xml file.
the error message is " Invalid argument" and after debugging , the error occurs on dhtmlxgantt.js file on the following statement :
this.$task.style.width=this._x-this.config.grid_width-2+“px”
, this._x and this._y values are zero because both of this._obj.clientWidth and this._obj.clientHeight values are zero.
We will double-check the issue, but as fast solution you may set the fixed widht and height on gantt’s container, as issue occurs because of initing the gantt in html container with zero width or height
Hi,
I’m also getting this issue on IE9 when the gantt div is set at 100% width
Kevin
Fixed version of dhtmlxgantt.js is attached, please try to use it instead of the original one.
Beware that above error may be a sign of incorrect (zero, or too small) sizes of the html container.
dhtmlxgantt.zip (33.4 KB)