[SOLVED] Problems with PoolLayout() margin

Hi,

I’m trying to do 2 Pools with Lanes like

http://gojs.net/latest/samples/swimLanes.html

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

Regards,

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!