Genogram multiple marriages nodes avoiding and large gap issue

Been working on multiple spouses on an app based on Genogram. Have set the spouse links to avoid the nodes, but why it didn’t avoid the first node?

And also, how can we make the gap between nodes smaller only for multiple marriages?

I’m not sure what might be causing that – it depends on what else might be around.

Still, in this case, you could override GenogramLayout.commitNodes to move the “Male Spouse 0” and “Male Spouse 1” toward the right.