So I have the following NodeTemplate
here:
var texttemplate = GO(go.Node, "Horizontal",
{resizable: true, resizeObjectName: "TEXTBLOCK", selectionObjectName: "TEXTBLOCK"},
GO(go.TextBlock,
new go.Binding("text", "text"),
new go.Binding("font", "fontType"),
new go.Binding("textAlign", "textAlign"),
new go.Binding("isUnderline", "underline"),
new go.Binding("width", "textWidth"),
new go.Binding("height", "textHeight")
),
new go.Binding("location", "shapePosition"),
new go.Binding("angle", "rotation"),
new go.Binding("width", "width"),
new go.Binding("height", "height"),
new go.Binding("layerName", "layer")
)
The line resizable:true
renders the resizable corners on my Node
object, however, the TextBlock
contained within the node, does not seem to be resized. Please confer with the screenshot. YOu can see that the TextBlock’s text is cropped where as the Node boundary far exceeds the apparent Text boundary
I was following along with http://gojs.net/latest/intro/tools.html. I think I maybe went wrong with assuming that the resizeObjectName of a TextBlock
is "TEXTBLOCK"
. Ideas?