In the SubGraph demo, the CustomSubGraph object will move when We repeat collapsing and expanding a childless CustomSubGraph object.
Tell me how to fix location of the SubGraph.
Yes, that’s a known bug.
As a work-around, I suppose you could override Expand to move the expanded subgraph if it is “empty” (i.e., excluding Handle, Label, and whatever else is skipped by ComputeBoundsSkip).
But can you give an examle code for this Expand method.
I still stop it moving.
Help me please
I don’t know of a good work-around for this.
Depending on your application, perhaps you can add a dummy child object such as a GoRectangle that can’t be seen or selected.