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

Selection box larger than expected

$
0
0

@dev wrote:

Below is the format portion of my node template - when I change nodeWidth and nodeHeight, the selection box outline remains the same. What am I not understanding about the width and height definition?

Am I missing something on the Part class that sets the selection size independently?

            $(go.Panel, 'Auto',
                $(go.Shape, 'RoundedRectangle', {
                    fill: grays,
                    width: this.nodeWidth,
                    height: this.nodeHeight,
                    strokeWidth: 0.5,
                    portId: '',
                    fromLinkable: true,
                    toLinkable: true
                }),
                $(go.TextBlock,
                    new go.Binding('text'),
                    this.textStyle()
                )
            ),

textStyle() {
    return { font: '14pt Helvetica', stroke: '#134048', editable: true };
}

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles