Hi,
I created a re-sizable group with sub-graph expanded button. The button worked fine if I didn’t re-size it. However if I clicked the button after re-sizing it, the whole sub-grpah disappeared and the group node remained the same size as before. Please see the attached image:
Below is the code for my test page:
<!doctype html>
Regrouping DemoThis sample allows the user to drag nodes, including groups, into and out of groups, both from the Palette as well as from within the Diagram.
Highlighting to show feedback about potential addition to a group during a drag is implemented using GraphObject.mouseDragEnter and GraphObject.mouseDragLeave event handlers. Because Group.computesBoundsAfterDrag is true, the Group's Placeholder's bounds are not computed until the drop happens, so the group does not continuously expand as the user drags a member of a group.
When a drop occurs on a Group or a regular Node, the GraphObject.mouseDrop event handler adds the selection (the dragged Nodes) to the Group as new members.
Thanks.