Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Link is changing origin and destination anchor points when diagram bounds are getting change (Read 4971 times)
Niranjan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Nov 19th, 2009
Link is changing origin and destination anchor points when diagram bounds are getting change
Jan 11th, 2013 at 11:31am
Print Post  
Hi,

I am using Mindfusion DiagramLite library to render my diagrams. I am changing diagrams bounds when the container of diagram is getting changed. My problem is when diagram bounds are getting change, somehow the links are changing its start and end points. I dont want to change the points of diagram links when diagram bounds are getting change.

Can you please suggest me a solution for this?

Regards,
Niranjan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link is changing origin and destination anchor points when diagram bounds are getting change
Reply #1 - Jan 11th, 2013 at 3:17pm
Print Post  
Hi,

The Diagram.Bounds setter does not change any diagram items but only rebuilds the alignment grid and calls InvalidateMeasure. Check if you aren't handling the Diagram.BoundsChanged event and doing something with links from the handler, e.g. re-routing them.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Patryk
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 16
Joined: Jun 13th, 2025
Re: Link is changing origin and destination anchor points when diagram bounds are getting change
Reply #2 - Sep 11th, 2025 at 6:21am
Print Post  
Hello,
I found this post and I am facing exactly the same issue.
Once I am routing my link on protected override void OnUpdateBounds()
my origin anchor is changed.
Is there a way to avoid it ?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3440
Joined: Oct 19th, 2005
Re: Link is changing origin and destination anchor points when diagram bounds are getting change
Reply #3 - Sep 11th, 2025 at 7:36am
Print Post  
Hi,

Try setting RoutingOptions.Anchoring to Keep.

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


I Love MindFusion!

Posts: 16
Joined: Jun 13th, 2025
Re: Link is changing origin and destination anchor points when diagram bounds are getting change
Reply #4 - Sep 11th, 2025 at 10:54am
Print Post  
Nope,
the RoutingOptions.Anchoring = Anchoring.Keep; has been set on the main diagram.

I need to admit that it changes anchores only for an implementation of ContainerNode. For a single DiagramNode it works fine.
But I guess the routing options are relevant for all elements?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3440
Joined: Oct 19th, 2005
Re: Link is changing origin and destination anchor points when diagram bounds are getting change
Reply #5 - Sep 11th, 2025 at 1:24pm
Print Post  
If link.Dynamic is enabled, try setting it to false too. It kind of overlaps with RoutingOptions.Anchoring and we plan to merge these when time allows. Otherwise please attach a test project reproducing that.

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