'says' the Gantt chart to automatically extend the time scale in order to fit all displayed tasks
gantt.config.fit_tasks = true; gantt.init("gantt_here");
By default, dhtmlxGantt doesn't automatically extend the time scale, if some task no longer fits into the current interval. This can happen when a user sets the task date or after auto scheduling. In that case the task bar can be truncated or not visible at all.
To 'force' the scale re-render each time a task doesn't fit into the existing scale interval, set the fit_tasks property to true.
For example, the initial duration of the task "Project #2" is 6 days.
If the user makes the duration longer by setting it say to 8 days, the Gantt chart will behave differently, depending on the value of the fit_tasks property: