Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic applying a layout inside of a container node (Read 1554 times)
MindFusionUser47
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Location: Illinois
Joined: Jan 23rd, 2018
applying a layout inside of a container node
May 12th, 2019 at 7:48pm
Print Post  
Using the Orthogonal Layout for diagram produces the layout as expected.

var layout = new MindFusion.Diagramming.Layout.OrthogonalLayout();
layout.Arrange(diagram);

Expect when I introduce container nodes. The container nodes are laid out. The problem is I insert my table nodes into the container nodes.

container.Add(tablenode)

How do I recursively apply the layout inside the containers? Right now all of the table nodes are stacked on top of each other inside of the container node. They have links to each other inside the container and going outside of the container node to other table nodes inside other container nodes. I have multiple container nodes in one diagram.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3146
Joined: Oct 19th, 2005
Re: applying a layout inside of a container node
Reply #1 - May 13th, 2019 at 7:47am
Print Post  
There's no built-in support for recursive layout. Try code from https://mindfusion.eu/Forum/YaBB.pl?num=1273515591/1#1 to arrange containers before applying main layout.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
MindFusionUser47
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Location: Illinois
Joined: Jan 23rd, 2018
Re: applying a layout inside of a container node
Reply #2 - May 16th, 2019 at 9:52pm
Print Post  
Thank you. The code works for orthogonal layouts.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint