Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Weird arrows when switching between layouts (Read 2480 times)
baron
YaBB Newbies
*
Offline


1001001001

Posts: 42
Joined: Dec 2nd, 2007
Weird arrows when switching between layouts
Dec 2nd, 2007 at 2:21pm
Print Post  
When switching between some of the layouts, the arrows retain their segments/positions and result in very funky links. For example switching between grid/layer to tree layout, or from tree to spring/grid.

Here is an example: The layer layout (before):


And the tree layout (after):


This can get really weird and messy after a few switches.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Weird arrows when switching between layouts
Reply #1 - Dec 3rd, 2007 at 8:39am
Print Post  
TreeLayout ignores links that are not part of the tree, so you might have to reset the Style/SegmentCount of such links, or route them to find a path that won't cross any node. There isn't any method available to explicitly route a link, but you could use the AutoRoute property to do that, e.g.

' changing AutoRoute from false to true will find a route
arrow.AutoRoute = false;
arrow.AutoRoute = true;

We might have forgotten to reset the arrow style when SpringLayout runs. You could do that yourself by setting all links to Style = Polyline, SegmentCount = 1;

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint