RTL direction is not working properly in Gantt grid

gantt v7

when I try to resize the grid, the white shift appears from the right side.


I need a way to prevent this bad behavior.

Hello Ayman,
The issue should not be related to the Right-to-Left mode. It is working the same way without it, if you add the scrollable: true parameter to the grid in the layout configuration:
https://docs.dhtmlx.com/gantt/desktop__layout_config.html#scrollbar:~:text="scrollHor1"%2C-,scrollY,-%3A%20"scrollVer"

Because of that, the Grid size will be fixed.
You can see that it works the same way in the following snippet:
https://snippet.dhtmlx.com/1mvc4hxz

You need to enable the grid_elastic_columns config to make the grid both scrollable and resizable:
https://docs.dhtmlx.com/gantt/api__gantt_grid_elastic_columns_config.html

Here is an example in the snippet:
https://snippet.dhtmlx.com/355b4d00