I have noticed, that you have opened a support ticket on the same topic. As this issue might be applicable in applications of other developers, I would suggest you to continue the discussion here. In case the discussion requires information or implementations details, which should not be shared publicly, we could continue in the support thread.
First of all, thank you for the code snippets prepared, where I noticed, that the Gantt widget is placed within a container element. In some scenarios, such nesting could cause issues as the described. The reason is the fact, that on initial calculation of the position of the tasks, the Gantt chart container is not visible (not displayed) or its width is 0.
This issue could be resolved by calling the Widget.resize()
and then Gantt.refresh()
methods, after the container has been resized. Here you will find a simple Dojo
, that implements the above suggestion.
In case this does not solve the problem faced, may I ask you to provide further implementation details of the case?