my Source is :
myDiagram.groupTemplate =
GO(go.Group, "Auto",
{
defaultAlignment: go.Spot.TopLeft,
opacity: 0.8,
ungroupable: true,
selectionObjectName: "PH",
locationObjectName: "PH",
resizable: true,
resizeObjectName: "PH",
mouseDragEnter: function (e, grp, prev) {
if (grp.isSubGraphExpanded) {
highlightGroup(e, grp, true);
}
},
mouseDragLeave: function (e, grp, next) {
if (grp.isSubGraphExpanded) {
highlightGroup(e, grp, false);
}
},
computesBoundsAfterDrag: true,
computesBoundsIncludingLocation: true,
subGraphExpandedChanged: function (group) {
var body = group.findObject("PH");
if (group.isSubGraphExpanded) {
group.mouseDrop = finishDrop;
for (var i=0; i < oriSize.length; i++) {
if (oriSize<em>.id === group.__gohashid) {
body.desiredSize = oriSize<em>.size;
delete oriSize<em>;
oriSize.splice(i,1);
break;
}
}
group.resizable = true;
body.strokeWidth = 2;
} else {
group.mouseDrop = function empty(){};
oriSize.push({id:group.__gohashid,size:body.desiredSize});
body.desiredSize = new go.Size(120, 40);
group.resizable = false;
body.strokeWidth = 5;
}
},
mouseDrop: finishDrop
},
new go.Binding("location", "loc", go.Point.parse).makeTwoWay(go.Point.stringify),
GO (go.Panel, go.Panel.Auto,
GO(go.Shape, "RoundedRectangle",
{
name: "PH",
isPanelMain: true
},
new go.Binding("fill", "background")
)
),
GO(go.Placeholder,
{ name: "groupHolder", padding: new go.Margin(35,10,10,10) }
),
GO(go.Panel, go.Panel.Vertical,
{ alignment: go.Spot.TopLeft, margin: new go.Margin(5,10,5,10) },
GO(go.Panel, go.Panel.Horizontal,
{ stretch: go.GraphObject.Horizontal },
GO("SubGraphExpanderButton",
{ alignment: go.Spot.Right },
GO(go.Picture,
{ desiredSize: new go.Size(12, 12) }
)
),
GO(go.TextBlock,
{ alignment: go.Spot.Left, editable: true,
name: "TEXT",
font: "Bold 12pt Sans-Serif",
wrap: go.TextBlock.None,
margin: new go.Margin(2,0,0,0),
maxSize: new go.Size(100, NaN),
isMultiline: false, text: "Group"
},
new go.Binding("text", "text").makeTwoWay())
)
)
);
If you are in a group and the group of the following symptoms occur
help