Scheduler for MVC

The scheduler is working as expected whike using Firefox.

When using IE 8 I am getting javascript error in file dhtmlxscheduler_timeline.js.
the error is in the following line: f.style.width=i[0]+e+“px”;
the value i[0] is 200 and the value of e is -240.
The calander/timeline are shown but without events.
Any idea?

Thanks

Are you initing scheduler with in hidden container ?

Normally all sizes are positive. But if you are initing scheduler in container with display:none - it will take total size of schedulr as 0, which may lead to negative sizes during calculation.

Anyway, we will check and probably add extra guard there.
As quick fix, you can make change in your verson of code

replace
f.style.width=i[0]+e+“px”;
with
f.style.width=Math.max(0,i[0]+e)+“px”;