Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Tree Layout not working as expected (Read 1873 times)
fmicle
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: May 22nd, 2007
Tree Layout not working as expected
Jun 27th, 2007 at 6:48pm
Print Post  
I am experiencing the following problem after updating from 4.0.2 to 4.3.1.

With the old code, we had 3 tables, connected by 3 arrows. We'd set the AnchorPatter to null and the arrows (Polyline) would automatically link the tables following the shortest path. For our simple diagram (3 tables) it looked great.

Now, with the same code, after upgrading to 4.3.1, the arrows now start in the middle of our tables, making the diagram look pretty bad. I noticed that I needed to create an AnchorPattern to fix that issue. Now the arrows are connected to my anchor points, but the problem is, they are routed around the tables, instead of following the shortest path. The diagram looks unnecessarily complex, because if I have table A and B next to each other, the line connecting them will start under A and connect B from the right side, instead of connecting the right side of A with the left side of B (which is my expectation).

I also noticed that if I use Polyline for the arrows, they will cross over the tables, so switched to Cascading.

In also tried different styles, SnapToBorder, SnapToAnchor (or something similar), but nothing seemed to work.

Am I missing something here?

Thanks, Florin
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Tree Layout not working as expected
Reply #1 - Jun 28th, 2007 at 8:08am
Print Post  
There are only two differences in the arrow-routing functionality between versions 4.0.2 and 4.3.1.

The first is the addition of the RoutingOptions.Anchoring property that controls how the end points of an arrow are positioned - try how routing works with the possible values for this property.

Second, there is a new SmartPolyEnds property that changes how ArrowStyle.Polyline control points are positioned - try setting it to false to get the old behavior for polyline arrows.

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