Horizontal scroll with resources management and histogram


I have the Gantt chart working and we’re trying to use the resources management view but we have a small bug when DHTMLX tries to update the resource histogram.

The problem arises when a resource has no affectation on the visible cell range (the timetable has dates but it is out of range) after scrolling.
At this moment the “sizes” variable is undefined when the render capacity element is called and the error is displayed on the console: cannot read property ‘top’ of undefined

Is there any work in progress to solve this?


Hello Giovanni,
I suspect, you encountered a bug when the histogram timeline stops working when the gantt.config.resource_render_empty_cells parameter is disabled:
The dev team will fix that in the future, but I cannot give you any ETA.

As a workaround, you can turn that option on:

If you have a different use case, please add your configuration in the following snippet and make sure that the issue is reproduced there:
Then, click on the Share button and send me the link.
Or send me a ready demo with all the necessary Javascript and CSS files so that I can reproduce the issue locally.


Hello Ramil,

The workaround solved my problem.

Thank you very much!