@Abhishek wrote:
Hi,
I am using resizable group template and placing some part inside it but on resizing the group from right size it works fine and group resizes without interfering with the parts inside it but while shrinking the same group from left size it is making the parts shift rightwards and if there is some space between the part and left side boundary of the group that remains same.
group template
$( go.Group, "Vertical", { selectionAdorned: true, selectionObjectName: "SHAPE", // custom selection adornment: a blue rectangle selectionAdornmentTemplate: $( go.Adornment, "Auto", $(go.Shape, { stroke: "dodgerblue", fill: null }), $(go.Placeholder, { margin: -1 }) ) }, { resizable: true, resizeObjectName: "SHAPE" }, { reshapable: true }, $( go.Shape, { name: "SHAPE", fill: groupFill, stroke: groupStroke }, new go.Binding("desiredSize", "size", go.Size.parse).makeTwoWay( go.Size.stringify ), new go.Binding("angle").makeTwoWay(), new go.Binding("geometryString", "geo").makeTwoWay() ), { resizable: true, resizeObjectName: "SHAPE" }, new go.Binding("position", "pos", go.Point.parse).makeTwoWay( go.Point.stringify ), . . . $( go.Panel, "Table", $( go.TextBlock, { overflow: go.TextBlock.OverflowEllipsis, textAlign: "left", font: "10pt Proxima Nova Helvetica Neue Helvetica Arial sans-serif", stroke: "red", editable: true, isMultiline: false, }, new go.Binding("text", "key").makeTwoWay() ) ), { // define a context menu for each node contextMenu: this.getContextMenu() } ); }
here shrinking from left or right side results in space shrink from right side only.
Posts: 1
Participants: 1
