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

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.

1 Like

Hello Ramil,

The workaround solved my problem.

Thank you very much!

Hello Giovanni,
The dev team fixed the bug with the histogram view and the resource_render_empty_cells parameter. Now, the histogram view should work correctly even when that parameter is disabled:
https://docs.dhtmlx.com/gantt/whatsnew.html#714
You can check how it works in the following snippet:
http://snippet.dhtmlx.com/5/ca9ce3a93