Text warp for node

Hello,

We are adding child items in node item using following code

var newgp = {
key: nextkey,
category: “UnitMember”,
Name: obj.Name, //Editable Text
Title: obj.Title, //Editable Text
color: “#d3f0c6”,
Contact: obj.Contact, //Editable Text
group: currentNodeData.key
};
myDiagram.model.addNodeData(newgp);

When user enters text that is longer than width of node, it gets hidden. We need to wrap text in this scenario, similar to wrap: go.TextBlock.WrapFit, for TextBlock, How do we achieve this?

Thanks

Its hard to know why it would be clipped instead of wrapped without seeing the templates.

Set a desiredSize (width only) on the TextBlock, or make sure that the TextBlock’s panel constrains its width in some way.