Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7419

Link rerouting on flow chart example

$
0
0

@shameer.sheik wrote:

Hi ,

in reference to flow chart example http://gojs.net/latest/samples/flowchart.html , i notice that when i change the textlabel in a node the link reroutes itself , i want a fixed rectangle and fixed textbox so that the rerouting is not done once when i edit the label. Could you help me with this?

my code so far - still the issue persists

$(go.Shape, "RoundedRectangle",
{ stroke: null ,width: 150, height: 60},
new go.Binding("figure", "figure"),
new go.Binding("fill","color")),

  $(go.Panel, "Table",
    $(go.RowColumnDefinition,
      { column: 0, alignment: go.Spot.Left,width: 15}),
    $(go.RowColumnDefinition,
      { column: 6, alignment: go.Spot.Right,width:15}),
    $(go.RowColumnDefinition,
      { row: 0, alignment: go.Spot.Top}),
    $(go.RowColumnDefinition,
      { row: 5, alignment: go.Spot.Bottom }),
    $(go.RowColumnDefinition,
      { row: 3, alignment: go.Spot.Top, height:12 }),

   
    $(go.TextBlock,
        {
          column: 1, row: 1, rowSpan:4 , columnSpan:5, alignment: go.Spot.Center,
          font: "bold 11pt Helvetica, Arial, sans-serif",
          stroke: lightText,
          wrap: go.TextBlock.WrapFit,
          textAlign: "center",
          editable: true,
          maxSize: new go.Size(110, 30),
          minSize: new go.Size(110, NaN)
        },
        new go.Binding("text").makeTwoWay()
      ),

Posts: 7

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7419

Trending Articles