Fixed positioned task layer

I would like to add a task layer that is not affected by the horizontal scrollbar.

Here is the example:

so when the user is scolling the timeline vertically the icons need to be with fixed position.

Hello Nikolai,
You can do that by specifying position: fixed; in the task layer styles.
Here is an example:
http://snippet.dhtmlx.com/9a207af11

doesn’t work this way. When you scroll vertically the icon should stay on the task row!

Hello Nikolai,
Thank you for the clarification.
In that case, you need to update the scroll position every time you scroll Gantt. In the onGanttScroll event handler you update the position and modify it for each task layer. Here is the updated snippet:
http://snippet.dhtmlx.com/f83bdb49d

1 Like

10x. works like a charm.