Horizontal scroll with resources management and histogram


#1

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?
Thanks


#2

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:
https://snippet.dhtmlx.com/5/ca9ce3a93
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:
http://snippet.dhtmlx.com/5/3e042f598

If you have a different use case, please add your configuration in the following snippet and make sure that the issue is reproduced there:
https://snippet.dhtmlx.com/38ee1b370
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.


#3

Hello Ramil,

The workaround solved my problem.

Thank you very much!