@ebbnormal wrote:
So I have the following
NodeTemplatehere: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:truerenders the resizable corners on myNodeobject, however, theTextBlockcontained 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 boundaryI was following along with http://gojs.net/latest/intro/tools.html. I think I maybe went wrong with assuming that the resizeObjectName of a
TextBlockis"TEXTBLOCK". Ideas?
Posts: 6
Participants: 2
