Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Detect Editing is Started in TextBlock

$
0
0

@pawantarani wrote:

Hello,

I want to set maxSize of textblock to something like

textBlock.maxSize = new go.Size(150,NaN); when user starts editing in textblock.

And on diagram.TextEdited event, I want to change maxSize property to

textBlock.maxSize = new go.Size(NaN, NaN).

When I am overriding textEditingTool.doStart method and setting initial config textBlock.maxSize = new go.Size(150,NaN); than it is showing me warnings like

Change not within a transaction: !d maxSize: Process old: Size(Infinity,Infinity) new: Size(150,Infinity)

Is there any other event, Where we can detect that editing inside textblock is started and we can change its property at run time?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles