In autoplaning, after creating a connection, the task is not centered in the center
use do not help
gantt.render()
gantt.refreshTask()
gantt.init(…
scroll also disappears
In autoplaning, after creating a connection, the task is not centered in the center
use do not help
gantt.render()
gantt.refreshTask()
gantt.init(…
scroll also disappears
Hello Victor,
It works correctly with the default configuration:
https://snippet.dhtmlx.com/j9dli98b
It seems you specified the displayed date range in the gantt.config.start_date
and gantt.config.end_date
parameters:
https://docs.dhtmlx.com/gantt/api__gantt_start_date_config.html
In that case, it is expected behavior that it doesn’t change when you set different task dates or auto-schedule them. You can remove the dates from the gantt.config.start_date
and gantt.config.end_date
parameters, then Gantt will have the dynamic date range that depends on the task dates. Otherwise, you need to implement a custom solution to modify the date range depending on what you need.
Here is an example:
https://snippet.dhtmlx.com/32nun2ef
If that doesn’t help you, 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.
In that case, I need a snippet or a ready demo so that I can reproduce the issue locally.