Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Layout issues with FlowLayout and ContainerNodes (Read 1445 times)
Gofj
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Feb 12th, 2009
Layout issues with FlowLayout and ContainerNodes
Feb 12th, 2009 at 3:39pm
Print Post  
While evaluating this control, i've run into a problem with FlowLayout.

I've created 3 ContainerNode derived objects
Collapsed them all
Aranged them in a tree-like view (root + 2 leaves) very close together
Connected the root to each of the leaves
Arranged them with a FlowLayout

The node placement is not predicable. At least one of the leaf nodes will be placed way out of view. Even if there is a node in view, the arrows from the root will extend WAY out of view and then come back into view. I'm using the flowlayout code from the flowlayout sample. Any ideas or is this a known issue?

I've also tried TreeLayout which seems to work a lot better but is probably not the layout i'm looking for. The one issue i've seen with TreeLayout is that it arranges collapsed containernodes as if they have been expanded. I would like them to be a lot closer together and redo the layout when i expand a containernode. I haven't yet looked to see if there's an override to the size of a containernode for layout purposes.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Layout issues with FlowLayout and ContainerNod
Reply #1 - Feb 12th, 2009 at 4:02pm
Print Post  
Are you setting the LayoutTraits[LogicID] for all of the nodes and links? Anyway this layout is intended for use mostly as in the ProcessLayout sample, and might be an overkill for simple flowcharts. Consider using some combination of TreeLayout or LayeredLayout as in here -
http://mindfusion.eu/Forum/YaBB.pl?board=wpfdg_disc;action=display;num=121275372...

You might also check if the WorkflowDesigner sample does something close to what you need.

Stoyan
  
Back to top
 
IP Logged
 
Gofj
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Feb 12th, 2009
Re: Layout issues with FlowLayout and ContainerNod
Reply #2 - Feb 12th, 2009 at 5:24pm
Print Post  
Stoyan,

I didn't notice the LayoutTraits. I will look at the other samples too.

Thanks for your help,
John
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint