Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic after adding node in node width changed control points of link disconnect (Read 237 times)
reshma
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 48
Joined: Jan 16th, 2018
after adding node in node width changed control points of link disconnect
Jun 18th, 2020 at 10:33am
Print Post  
I have scope in scope(c2) i have one more node(c1) and i am adding interface between node(c1) and scope(c2) and saving after that i am add two more node(1,2) in node width changed control points showing correct on diagram but when i am saving diagram control points of link disconnected,

Please let me know after adding node within node and changed width i have to save control points .
which method or event here to save control points after adding node?

« Last Edit: Jun 18th, 2020 at 11:55am by reshma »  

node_link_disconnected.png ( 5 KB | 19 Downloads )
node_link_disconnected.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 2278
Joined: Oct 19th, 2005
Re: after adding node in node width changed control points of link disconnect
Reply #1 - Jun 18th, 2020 at 3:56pm
Print Post  
Passing true as second argument of setBounds should realign node's links automatically -

Code
Select All
var b2 = node.bounds.clone();
b2.width += 10;
node.setBounds(b2, true); 



Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint