"Horizontal scroll inside Grid" with "autofit" doesn't work

Hi.
I have a problem when testing ‘Horizontal scroll inside Grid’ function using the sample provided.
“Horizontal scroll inside Grid” with “autofit” doesn’t work correctly.
Is there a solution to apply “autofit”?


Hello,
Unfortunately, autofit option doesn’t work great with the scrolled grid. That’s why you might encounter that kind of behaviour. We already have this issue in our tracker and will try to fix it in the upcoming update.

As a workaround you may try to apply the option before gantt.init():

gantt.init("gantt_here"); gantt.config.autofit = true; gantt.parse(demo_tasks);

You can see how it works in the snippet:
snippet.dhtmlx.com/ee056eb33