Tasks on same rows

Hello.

I found this awesome snippet , that allow to position a task on the same row as another task :
DHTMLX - Gantt. Reorder split tasks vertically in timeline

It works great in the example as you can see on this screenshot :
image

But, if the moved task finish later than the target task, this happens :
image

So :

  1. there is a background color showing up (probably the “project” task ?)
  2. the link starts from the wrong task

Is there a way to get rid of these 2 problems ?

Hello,

  1. there is a background color showing up (probably the “project” task ?)

You’re right, the background color is from the summary task with type "project". You can hide it with CSS:

.gantt_project {
	display: none;
}
  1. the link starts from the wrong task

Most likely in your case the link goes from the summary project task to “Stage #2”. That’s expected behavior. See this example: DHTMLX Snippet Tool

1 Like

You were right, the link was attached to the project task instead of the actual task.
Everything is working now. Thanks for your help !

1 Like