DHTMLX / gantt

GPL version of Javascript Gantt Chart
https://dhtmlx.com/docs/products/dhtmlxGantt/
GNU General Public License v2.0
1.48k stars 324 forks source link

drag task, other function was fired. #87

Closed Hsensor closed 1 year ago

Hsensor commented 1 year ago

image image

gearcoded commented 1 year ago

@Hsensor, This is expected behavior. When you drag a task in the timeline, Gantt repaints the whole row. Task #4 is a project task. Its dates depend on its children. So when you move Task #4.3 to an earlier date, the start_date of Task #4 is also changed, and Gantt repaints the whole task row of Task #4. It will work the same way for other templates.

If you drag tasks #4.1 and #4.2 within the dates of Task #4, the dates of their parent won't be changed, so Gantt won't repaint it, and the templates won't be called.