@pistolShrimp wrote:
Hi,
I am using a textblock in an "Auto" panel by specifying specific properties to that textBlock. Most of these properties are not working. Below is the textBlock I defined$(go.Panel, "Auto", { fromSpot: go.Spot.Right, toSpot: go.Spot.Left, fromLinkable: true, toLinkable: true, portId: "textBox" }, $(go.Shape, "Rectangle", { desiredSize: new go.Size(120,25), stroke: "gray", strokeWidth: 1, fill: 'white' }), $(go.TextBlock,{ alignment: go.Spot.Center, textAlign: "center", width: 85, height: 25, stroke: 'blue', wrap: go.TextBlock.WrapFit, editable: true }))
On click of textBlock to edit, The text area height and width are not taken as given. Also textAlign is not working.
Can you please let me know why it is so and help me if I am missing anything.
Posts: 2
Participants: 2