gookin-wu / jsgantt

Automatically exported from code.google.com/p/jsgantt
0 stars 0 forks source link

Ability to add tasks in any order. #71

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected output?

Currently, it appears that tasks have to be entered in the exact WBS order
to show the chart correctly, otherwise it is very broken - with tasks
appearing and disappearing far away from their parent items when the + and
- are pressed, even though the pParent structure is correct.  It would be
great to be able to add the tasks in any order.

Are there any specific API changes you would like to see?

No.

Please provide any additional information below.

Original issue reported on code.google.com by allen.e....@gmail.com on 28 Feb 2010 at 1:24

GoogleCodeExporter commented 9 years ago
I had the same issue while working on jsgantt, and I was able to find a 
workaround.
It was necessary to change the method AddTaskItem by checking if the new task 
has a parent (different than 0), and if so, calculate the correct position for 
the task to enter in the task list.
This solution is attached in my comment. So far in my tests everything worked 
fine, but if someone finds some issue with it, please tell me!

Original comment by jcarlos...@gmail.com on 19 Oct 2010 at 3:51

Attachments: