I am using the demo 1 sample, to try to understand GoText AutoResizes within a GoMultiTextNode
I run demo1, add a RecordNode and select it. I then use the property
panel to select and change the following properties of one of the
GoText objects with the RecordNode:
AutoResizes : true
Selectable : true
MultiLine : false
ResizesRealtime : true
AutoRescales : true
Text : the quick brown fox jumped over the lazy dog
Clipping : False
Editable : true
Resizable : true
But, the width of the GoText does not change. (Either in the diagram, or in the property panel)
Because Clipping is false, I can see the text extending beyond the
bounds of the GoText. Of course, I really want the GoText bounds to
grow to accomodate the changed text
Why isn’t the GoText width increasing? Is it because the GoText is constrained by its parent, the GoMultiTextNode?
How do I get the GoText and GoMultiTextNode to Resize to accomodate the changed text?
If I have to set the width of the GoMultiTextNode, is there a way to calculate the size of the text ?