When i have a a bunch of nodes with specific auto layout and of the nodes is a group, when i expand the group node and then collapse the node, the group node does not return to its original location and all nodes are moving.
If you look at the ‘Grouping’ sample it works like i mentioned.
On the other hand, if i don’t use the auto layout and expand/collapse freaks out and the group nodes loose their original position.
How can i maintain the group original position ?
The standard behavior is that whenever a node changes size, the responsible Layout is invalidated and soon is run again. You can disable that behavior overall by setting Layout.isOngoing or more specifically by setting Part.layoutConditions. Read more at GoJS Layouts -- Northwoods Software