The effect before dragging the text:
The effect after dragging the text:
The pink highlighted area should be the actual size of the group.The black box is the boundary of the group, and I want the black boundary of the group to change with the actual size of the group.
Before the change:
After the change
When I change the size of the group,the drawings show no nodes in the group.And the nodes in the group appear to be disconnected from the group.
When I drag a node into the group:
The pink area and the black frame area are not the actual area of the group on the drawing.
I hope that the group can change the size according to the node contained in it, and the user can also change the size of the node itself, and the node can also drag and drop in and out of the group.But how do I deal with the problem shown in the picture?