TypeError with unit scroll size greater than sections

I’ve attached a small modification of your 02_units_view sample.

The main difference is that it defines size: 6 and step: 1 for the units view but there are only 5 sections.

The chrome debug tool reports the following error when I load this example:

Uncaught TypeError: Cannot read property ‘css’ of undefined on dhtmlxscheduler_units.js:9

It would be nice if the unit view were more tolerant in this case and properly display the event.
02_kj_units_view.zip (1.17 KB)

Hello,

Try using attached file (dhtmlxscheduler_units.js).

Best regards,
Ilya
dhtmlxscheduler_units.zip (2.29 KB)

Thanks, the attached dhtmlxscheduler_units.js file did fix the problem.