@marin wrote:
Why doesn't my TextBlock stretch Horizontally?
My node organization is something like this:$(go.Node, 'Spot', { locationSpot: go.Spot.Center, locationObjectName: 'BODY' }, $(go.Shape, shapes.node, nodeShapeSettings(fillColor)), $(go.Panel, 'Auto', {stretch: go.GraphObject.Fill, minSize: new go.Size(30, NaN)}, $(go.Shape, 'Rectangle', { fill: 'transparent', stretch: go.Spot.Horizontal }), $(go.TextBlock, { editable: true, background: 'white', textAlign: 'center', stretch: go.GraphObject.Horizontal }, new go.Binding('text', 'text').makeTwoWay())), getPort(portTypes.output) );
Posts: 4
Participants: 2