Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic FlowChart.Net Auto Layout Issue (Read 1753 times)
SCooper
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Aug 10th, 2010
FlowChart.Net Auto Layout Issue
Jan 17th, 2013 at 4:41pm
Print Post  
Hi, I am having a small issue using the FlowChart.Net auto-layout feature, We have three options the user can select for a tree branch, horizontal, vertical and side-by-side. Horizontal and Side-by-Side work as expected, but the Vertical option shows an issue with the spacing between the nodes.







As can be seen in the last image, the first branch is spread further than any of the others. The code is the same, there is only one execution path, so I am a bit confused that there is a difference. Is there anything I can try to correct this?

Additionally, our clients asked if it would be possible to control the node spacing per branch rather than for the entire tree. After looking at the options this doesn't seem possible to me, is there something I missed?

We use the following constructor for the TreeLayout:

TreeLayout treeLayout = new MindFusion.Diagramming.Layout.TreeLayout(
node,                                    // root
TreeLayoutType.Centered,                  // type
!parentToChildLinks,                        // reversedLinks
TreeLayoutLinkType.Cascading3,            // linkStyle
TreeLayoutDirections.TopToBottom,      // direction
levelDistance,                              // levelDistance
nodeDistance,                              // nodeDistance
true,                                    // keepRootPosition
new SizeF(10, 10))                        // margins
{
EnableAssistants = true,
};


Thanks for any help.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: FlowChart.Net Auto Layout Issue
Reply #1 - Jan 18th, 2013 at 8:11am
Print Post  
Hi,

This is a bug. We will have it fixed for the next release. As a workaround, you can try creating a temporary non-assistant child for each of the nodes with assistant children, perform the layout, then remove the temporary items.

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