We’re trying to achieve BPMN swimlanes with NO automatic layouting inside the lanes. Inside the lanes everything should be user-draggable. (and be saved as the user intended it)
In the example URL above you can clearly see what I mean. In the HTML source, I explicitely set the X and Y of “Blok 3” to a high value (http://prntscr.com/5rz9qm). Yet the node is positioned entirely left in the swimlane.
I already tried playing with the properties isInitial, isOngoing (Layout on group template) and isLayoutPositioned (Nodes), alas, to no avail.
I think your swimlanes (i.e. Groups) are using Placeholders. You are also using the custom StackLayout as the Diagram.layout, which is changing the size and position of each of the swimlanes/groups.
I suspect that you want to go to an interactive experience more like the Planogram sample: http://gojs.net/latest/samples/planogram.html. Is that true? If so, note that the Groups there do not use Placeholders, so that they can be individually sized and positioned independently of their member nodes and links. Although moving a Group does move its member Nodes, moving a Node just leaves it where it is, and there are no restrictions on where Nodes may be dragged.
I think you probably don’t want to use a Placeholder. I suspect that the Placeholder is being positioned at the top-left corner of the area bounded by the Shape, as determined by the StackLayout.
You have already removed the setting of Group.layout, which I think is correct for your app.
So I think you need to change the StackLayout too. Instead of inheriting from GridLayout and depending on it to position the Groups, you should explicitly compute the sizes and positions of each Group. It’s a bit busy, so I can’t implement this for you right now.
Hmmm. Tried some things without the StackLayout being a GridLayout. But can’t figure out how to make the lanes being dependant on each other. (resizing one lange --> moving the other lanes with it, so they keep attached to each other)
So I finally got some time to work on this. Try this modified swimlanes sample: [EDIT: now a standard sample that does have a Placeholder] Swim Lanes. The Group template does NOT have a Placeholder and does NOT have a Group.layout. The custom Diagram Layout is correspondingly different.