Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Link Control Points moving too far (Read 9940 times)
stefski
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 31
Location: Norway
Joined: Jul 17th, 2009
Link Control Points moving too far
May 27th, 2011 at 7:43am
Print Post  
Hi there,

we are experiencing a problem with control points of DiagramLinks moving double distance when moving multiple selected objects.

I have managed to reproduce the behaviour in a sample application, and I have found that the problem is triggered by a combination of factors:

1) We have 2 DiagramNodes, A and B, each of which have child nodes A.1 and B.1, respectively.

2) We have a DiagramLink, connecting A.1 and B.1, with at least one control point (in addition to the start and end points).

3) A.1 and B.1 are either invisible (Visible=false) or locked (Locked=true).

4) A.1 and B.1 are attached to their parents using the DiagramNode.AttachTo() method accepting an AttachToNode enum as second argument.

Digging into the Flowchart.NET source code I find that Group.GetLinksToMove() comes to the conclusion that the control points of the link should be repositioned (for the second time), if A.1 and B.1 have a group attachment of type AttachTo.FixedCorner or AttachTo.SideMiddle and not both A.1 and B.1 are selected (which they cannot be, if they are either locked or invisible).

We consider this a bug because we do not see any circumstances in which the current behaviour makes any sense. A locked or invisible object should not be movable on its own, but it should still follow its parent (which it also does now). The problem seems to be that such objects are considered differently when it comes to moving links.

As I pointed out, I have a sample application, which I would be happy to send to you, if you provide me with a target. Smiley
  

Kind regards

Steffen Skov
OLGA Application Architect
Schlumberger Information Solutions AS
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link Control Points moving too far
Reply #1 - May 30th, 2011 at 8:02am
Print Post  
Ok, I was able to reproduce this even without locking A1 and B1. Our developer will investigate.

Stoyan
  
Back to top
 
IP Logged
 
stefski
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 31
Location: Norway
Joined: Jul 17th, 2009
Re: Link Control Points moving too far
Reply #2 - May 30th, 2011 at 9:15am
Print Post  
Nice!

Yes, you should be able to reproduce it if the items are locked OR invisible.

Looking forward to a solution to the issue.
  

Kind regards

Steffen Skov
OLGA Application Architect
Schlumberger Information Solutions AS
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link Control Points moving too far
Reply #3 - May 31st, 2011 at 11:44am
Print Post  
Hi,

If you are using a custom build of the control, replace the Selection.Update method with the one from the PM page. Let me know if you need compiled assemblies.

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


I love YaBB 1G - SP1!

Posts: 31
Location: Norway
Joined: Jul 17th, 2009
Re: Link Control Points moving too far
Reply #4 - Jun 1st, 2011 at 5:54am
Print Post  
Thank you, Stoyan,

we are using the official build (5.5), though, so we will just have to wait for a newer release.

I think we might be able to circumvent the problem in version 5.6.3 with a bit of modification to our code (i.e. using the new custom attachment setting when attaching child nodes to parent nodes).

  

Kind regards

Steffen Skov
OLGA Application Architect
Schlumberger Information Solutions AS
Back to top
 
IP Logged
 
stefski
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 31
Location: Norway
Joined: Jul 17th, 2009
Re: Link Control Points moving too far
Reply #5 - Jul 5th, 2011 at 9:28am
Print Post  
Hi Stoyan,

do you know roughly when we can expect a new version where this issue has been solved?
  

Kind regards

Steffen Skov
OLGA Application Architect
Schlumberger Information Solutions AS
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link Control Points moving too far
Reply #6 - Jul 5th, 2011 at 11:28am
Print Post  
Hi,

At some time in September. Let me know if you need compiled assemblies and I will send you ones from our daily build.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint