Dhtmlx When a large amount of data scroll down the Gantt chart and then fold and expand the Gantt chart for many times, the mouse will scroll blank and then normal

I checked the element and found that it was positioned below the browser’s palatability. When this problem occurs, I scroll the mouse and it becomes normal. How can I solve the problem of blank space without scrolling the mouse?

If I change the value of the element top in the above picture to 0, it will appear at the top of the page.

Hello Zhang,
I couldn’t reproduce the issue in the following snippet:
https://snippet.dhtmlx.com/1sbladnx

Probably, the issue is related to the Gantt configuration, but it is hard to suggest what might be wrong as I don’t see your code.
Please add your configuration to the following snippet and make sure that the issue is reproduced there:

Then, click on the Save 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.

Please see the gif below and pay attention to the subtitles
a

Hi, after I put my code in, I clicked the Save button and found that no link was generated. And I found that when the Gantt chart in my project is expanded and collapsed, the Gantt chart will scroll up, causing the content that scrolls out to not be rendered, resulting in blank space, but the scroll bar length does not change. I haven’t found the reason yet. Can you find this problem? Or wait until I find the reason and then take a look.

https://snippet.dhtmlx.com/g5snmup9

this is my code

Hello Zhang,
Thank you for sending the snippet.
When you reinitialize Gantt or use the resetLayout method, the scroll position and the layout cell sizes are not saved. So, after the layout is rendered, the scrollbar is displayed on the top position. This is expected behavior. If you want to keep the scroll position, you need to save it before reinitializing the data, then scroll to that position after Gantt is reinitialized.

Here is an example of how it can be implemented:


Unfortunately, I couldn’t reproduce the issue with the blank space in the snippet.
Do you use the latest Gantt version (8.0.8)?
In some older versions, there was a bug with blank space, but if was fixed in the 7.1.11 version:
https://docs.dhtmlx.com/gantt/whatsnew.html#:~:text=Fix%20the%20issue%20that%20caused%20the%20incorrect%20work%20of%20the%20smart%20rendering%20after%20expanding%20or%20collapsing%20of%20tasks%20in%20some%20cases

So, if your Gantt version is 7.1.10 or older, you need to update Gantt.

If you have the issue with the latest Gantt version (8.0.8) and you can reproduce it in the snippet, please share the exact steps to do that.
Otherwise, I need a snippet or a ready demo where the issue can be reproduced.