Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Why doesn't TextBlock stretch Horizontally?

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles