[SOLVED] Problems with PoolLayout() margin


I’m trying to do 2 Pools with Lanes like


but there is always a margin-top/margin-bottom? among them and I do not find it :confused:

How Can I set this margins = 0? I want to join the Pools


That’s controlled by the Diagram.layout, which happens to be a PoolLayout, which inherits from GridLayout. So you just need to set the GridLayout.spacing. For example:

          layout: $(PoolLayout, { spacing: new go.Size(0, 0) }),

You’ll note that the Group.layout already does this, which is why the lanes are next to each other.

It works :blush:

Thank you!