Layout positioning problem

Hi, I have a question. In the diagram I am working on I am using the GridLayout, but my problem is that when I move a group, and then expand/collapse it, it returns to its original position instead of staying where I moved it to. What could be causing this behavior? Thank you in advance.

That’s a feature of automatic layouts. Please read about layout invalidation here. Maybe you want to set Layout.isOngoing to false.

I do the isOngoing to false, but I lose the way I had organized my GridLayout (I have a wrappingWidth and other properties). Those are lost with the isOngoing to false

You need to decide exactly what the conditions should be for a layout to happen. You have read which discusses some of the ways you can control when a layout may be invalidated and thus be performed again.