Not able to set dynamic position of scroll bar when expand or collapse projet of group

when user expand or collapse project of group. either scroll bar always goes to top as we manually set it
if not set then white space is seen on gantt page for out of screen element.

Hello Rutuja,
I couldn’t reproduce the issue in the following sample:
https://docs.dhtmlx.com/gantt/samples/?sample=‘02_extensions/28_tasks_grouping_save_tree_structure.html’&filter=‘’

If I group tasks, then expand or collapse the group task, the Gantt doesn’t scroll to the top:
https://files.dhtmlx.com/30d/66aee8ae7915c1587075c8799770cbc2/vokoscreen-2024-04-05_13-25-23.mp4

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.