- Welcome, Guest. Please Login or Register
MindFusion  
  We have released initial version of MindFusion.JavaScript pack. It includes chart, diagram, calendar, map, virtual keyboard, gauge and UI components. Here are more details and live demo for anyone interested.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
applying a layout inside of a container node
Read 145 times

MindFusionUser47   Offline
YaBB Newbies
*
Posts: 7
Gender: male
Illinois
I Love MindFusion!


   
     
 
applying a layout inside of a container node
May 12th, 2019 at 8:48pm
 
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.
 
 
 
IP Logged    
 
     

Slavcho   Offline
God Member
*****
Posts: 1744
Gender: male
tech.support


   
     
 
Re: applying a layout inside of a container node
Reply #1 - May 13th, 2019 at 8:47am
 
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
 
 
 
IP Logged    
 
     

MindFusionUser47   Offline
YaBB Newbies
*
Posts: 7
Gender: male
Illinois
I Love MindFusion!


   
     
 
Re: applying a layout inside of a container node
Reply #2 - May 16th, 2019 at 10:52pm
 
Thank you. The code works for orthogonal layouts.
 
 
 
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print