Premium support for our pure JavaScript UI components


Post by capmo »

We have a weird behaviour on the Gantt chart, when two tasks with a dependency are dragged the second one is not being updated, we use https://bryntum.com/products/gantt/examples/advanced/ to reproduce it. the steps are:

  • Create a new task "task 1".
  • Move the task later than the startDate of the project.
  • Create a second task "task2".
  • Create a dependency from the end of task1, to the start of task2 with a lag of -5 days.
  • Drag task1 in any time from space, then try to move it before the day of the startDate of the task.
  • The second task is not being updated.

DEMO:
https://www.loom.com/share/e0de8569c46545229e8fde53b427378a

It looks like when task2 reaches the initial startDate, is not able to move in the past.

Could you please help us on this?


Post by marcio »

Hey capmo,

Thanks for the example and the video. I created a ticket to investigate/fix that behavior https://github.com/bryntum/support/issues/6905

Best regards,
Márcio


Post by arcady »

This is not a bug this is by design. When you drag a task it gets pinned with "Start No Earlier Than" the target date constraint. If you remove the constraint (with "Conctraint Type" column help for example) the successor will be scheduled based on the predecessor.

For more deatils on the scheduling please check this guide:
https://www.bryntum.com/products/gantt/docs/guide/engine/gantt_events_scheduling

It has a chapter on constraints effect here:
https://www.bryntum.com/products/gantt/docs/guide/engine/gantt_events_scheduling#event-constraint-effect-on-the-scheduling


Post Reply