Tasks automatically extend when I drag them

Hello,

When I drag a task, it automatically extends until the end of the gantt diagram. It seems to be the default behavior of a basic gantt and I can’t find what I have to change to stop that behavior (no automatic extension when I drag a task, but still able to manually extend a task like described here : docs.dhtmlx.com/gantt/api__gantt … onfig.html)

Before dragging : i.imgur.com/GN6zZYn.png
After dragging : i.imgur.com/mmbVqFQ.png

Code of my gantt diagram : pastebin.com/bircVtCk

Thank you for your help.

Hello,

You need to set value of duration_unit config to hour and change duration to whole hours. Example with your code:
docs.dhtmlx.com/gantt/snippet/09bb8391

Perhaps it will be good decision to set also round_dnd_dates and time_step configs.

Documentations:
docs.dhtmlx.com/gantt/api__gantt … onfig.html
docs.dhtmlx.com/gantt/api__gantt … onfig.html
docs.dhtmlx.com/gantt/api__gantt … onfig.html