Hi all,
In a group, I have many nodes, when I resize the group use the top and left handles, the nodes inside the group also moves when resizing. But when I use the right and bottom handles, the nodes do not move.
For my case, I don’t want the child nodes move at all when the parent group is resized. How can I do that?
I tried go.ResizingTool.isGridSnapEnabled = true, not working, maybe because I don’t use grid.
goObjBuilder(go.Group, go.Panel.Spot, { // NOTE: these properties and Binding belong to the Group, not to the Auto Panel
// highlight when dragging into the Group
//mouseDragEnter: function(e, grp, prev) { /highlightGroup(grp, true);/ },
//mouseDragLeave: function(e, grp, next) { /highlightGroup(grp, false);/ },
computesBoundsAfterDrag: true,
copyable: false,
resizable: true,
// Put group nodes/links in the front
//layerName: “Foreground”,
isSubGraphExpanded: false,
resizeObjectName: “GroupBody”,
<span =“Apple-tab-span” style=“white-space:pre”> …
}
We don’t use placeholder for the group. We are doing pretty much like the GoJS’s example: “Sizes Groups”
[code] myDiagram.toolManager.resizingTool.resize = function(newr) {
var diagram = this.diagram;
if (diagram === null) return;
var obj = this.adornedObject;
var part = obj.part;