Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Events.sizeChanged (Read 1287 times)
Davaaron
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 42
Joined: Jul 12th, 2018
Events.sizeChanged
Sep 6th, 2018 at 11:55pm
Print Post  
Hi,

is it possible to listen to size change events before they occur so I can cancel it if I want to?
There is an event sizeChanged, but that's after the change.

Thanks in advance.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Events.sizeChanged
Reply #1 - Sep 7th, 2018 at 8:25am
Print Post  
Hi,

There are nodeModifying and linkModifying events you could handle to cancel resize or move interactions.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Davaaron
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 42
Joined: Jul 12th, 2018
Re: Events.sizeChanged
Reply #2 - Sep 7th, 2018 at 9:33am
Print Post  
Thanks for the hint. I'll try that out. In my app, there are 5 diagrams aligned horizontally to each other. When I create a node on the very left diagram and delete that node, the parent diagram of that node increases its width and breaking the design. So I want to prevent the size changed (but I want to accept the size changed when the window is changed, therefore I thought I couldnt simply handle it with a boolean like 'allowResizing').
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint