Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to arrange the container node childs inside the parent node based on layout automatically? (Read 1616 times)
Shafi
Full Member
***
Offline


I Love MindFusion!

Posts: 109
Joined: Nov 8th, 2016
How to arrange the container node childs inside the parent node based on layout automatically?
Dec 9th, 2019 at 10:37am
Print Post  
How to arrange the container node child's based on layout automatically?

I have tried the arrange()
parentNode.arrange(new MindFusion.Graphs.FlowchartLayout);

But is not working.

I want to show the child node inside parent container node.
Node : i do not have x and y position at the time of container node creation.

Any suggestions would be really helpful.

Thanks,
Ashvini
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3228
Joined: Oct 19th, 2005
Re: How to arrange the container node childs inside the parent node based on layout automatically?
Reply #1 - Dec 9th, 2019 at 11:02am
Print Post  
Calling that from nodeClicked event handler worked in my test -

Code
Select All
function onNodeClicked(sender, args)
{
	var node = args.getNode();
	if (node.children)
	{
		node.arrange(new MindFusion.Graphs.FlowchartLayout());
	}
} 



I guess check if your parentNode variable points to the expected container.

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