Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Not able to create a good looking auto layout (Read 1321 times)
mariusin
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Mar 11th, 2011
Not able to create a good looking auto layout
Mar 11th, 2011 at 8:13am
Print Post  
We are struggling a bit with the "LayeredLayout" auto layout functionality. The problem is that we are moving some nodes on the canvas after auto layout has been performed thus "destroying" the auto layout. Is it possible to provide some manually positioning during auto layout by using the "LayoutNode" delegate? Can someone please explain what the effect is to the layout alghoritm when we use the forementioned delegate? Will the delegate be invoked on every layout calculation pass?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Not able to create a good looking auto layout
Reply #1 - Mar 11th, 2011 at 8:40am
Print Post  
This delegate only lets you track how the node positions change, but not to set custom positions from it.

If you need the layout to preserve the position of the moved node and arrange the rest of the nodes around it, that's not supported by LayeredLayout. Instead, use SpringLayout with "Frozen" nodes:
http://mindfusion.eu/Forum/YaBB.pl?board=fcnet_disc;action=display;num=124951813...

You could also check the AnimatedLayout sample from the WPF version of the control; it shows how to apply that method while a node is being moved.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint