Does not work for me. In my case what has changed is not the model data, but the NodeTemplate initialization code which has increased one of the margins (along with some other similar changes. see : THIS HAS CHANGED below).
// This is what activities look like by default:
diagram.nodeTemplateMap.add("",
$(go.Node, "Spot", this.nodeStyle(),
// the main object is a Panel that surrounds a TextBlock with a rectangular Shape
$(go.Panel, "Auto",
$(go.Shape, "RoundedRectangle", {
cursor: "pointer",
name: 'activity-shape',
fill: background,
minSize: forPalette? new go.Size(140, NaN) : new go.Size(NaN, NaN),
stroke: jiboBlue,
strokeWidth: 3},
new go.Binding("stroke", "", colorize)),
$(go.Panel, "Vertical",
{
margin: 3, // Make an easily selectable boarder for dragging out new transitions.
cursor: "move"
},
$(go.TextBlock, // The TextBlock for the Activity Name in big text in the middle.
{
name: "node-label",
font: "11pt Helvetica, Arial, sans-serif",
stroke: white,
margin: new go.Margin(8, 8, 0, 8),
wrap: go.TextBlock.WrapFit,
editable: true,
isMultiline: false,
fromLinkable: false,
toLinkable: false
},
new go.Binding("visible", "", compactor),
new go.Binding("text", "name").makeTwoWay()),
$(go.TextBlock, // The TextBlock for the Class name in small text at the bottom.
{
font: "8pt Helvetica, Arial, sans-serif",
stroke: jiboBlue,
margin: 3, // **************** THIS HAS CHANGED ***************
wrap: go.TextBlock.WrapFit,
editable: false,
fromLinkable: false,
toLinkable: false
},
new go.Binding("stroke", "", colorize),
new go.Binding("text", "clazz")
)
)
)
));