@ahmetgundogdu wrote:
Hello,
I resizing group template but placeholder size is not changed.
my code:goMake(go.Group, "Vertical",
{ungroupable: true, computesBoundsAfterDrag: true, mouseDrop: this.finishDrop, handlesDragDropForMembers: true, selectable: true, selectionAdornmentTemplate: this.nodeSelectionAdornmentTemplate, resizable: true, resizeAdornmentTemplate: this.nodeResizeAdornmentTemplate, mouseDragEnter: (e: go.InputEvent, grp: go.Group, prev: any) => { this.highlightGroup(e, grp, true); }, mouseDragLeave: (e: any, grp: go.Group, prev: any) => { this.highlightGroup(e, grp, false); }, }, // enable Ctrl-Shift-G to ungroup a selected Group new go.Binding("location", "", this.bindShapeLocation).makeTwoWay(this.converterShapeLocation), new go.Binding("desiredSize", "", this.bindShapeSize).makeTwoWay(this.converterShapeSize), goMake(go.Panel, "Horizontal", { alignment: go.Spot.Left }, goMake("SubGraphExpanderButton"), goMake(go.TextBlock, { font: "bold 19px sans-serif", isMultiline: false, // don't allow newlines in text editable: true, // allow in-place editing by user }, new go.Binding("text", "text").makeTwoWay(), new go.Binding("stroke", "", this.bindShapeTextColor).makeTwoWay(), new go.Binding("font", "", this.bindShapeTextFont).makeTwoWay(), new go.Binding("background", "", this.bindShapeTextBackgroundColor).makeTwoWay(), ) ), goMake(go.Panel,"Auto", { name: "PANEL", }, new go.Binding("desiredSize", "", this.bindShapeSize).makeTwoWay(), goMake(go.Shape, "Rectangle", // the rectangular shape around the members { fromLinkable: false, toLinkable: false, }, new go.Binding("stroke", "", this.bindShapeBorderColor).makeTwoWay(), new go.Binding("strokeDashArray", "", this.bindShapeBorderType).makeTwoWay(), new go.Binding("strokeWidth", "", this.bindShapeBorderThicknees).makeTwoWay(), new go.Binding("fill", "", this.bindShapeColor).makeTwoWay(), ), new go.Binding("desiredSize", "", this.bindGroupSize).makeTwoWay(), goMake(go.Placeholder, { name: "PlaceHolder", background: "green", }, new go.Binding("desiredSize", "", this.bindGroupSize).makeTwoWay(), ) // represents where the members are ), { // this tooltip Adornment is shared by all groups toolTip: goMake(go.Adornment, "Auto", goMake(go.Shape, { fill: "#FFFFCC" }), goMake(go.TextBlock, { margin: 4 }, // bind to tooltip, not to Group.data, to allow access to Group properties new go.Binding("text", "").ofObject()) ), } );
This state image:
Green place is not resizeing and all center position :/I checked this.bindGroupSize return value.
There is no problem.
what do i have to do ?
Posts: 6
Participants: 2