Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Resizing of Node doesn't resize attached Nodes (Read 1909 times)
Cyrinael
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 42
Joined: Jul 22nd, 2016
Resizing of Node doesn't resize attached Nodes
Jul 27th, 2016 at 7:15am
Print Post  
Hi,

I have several nodes attached to another node n1. If I resize n1, the attached nodes don't resize accordingly. Is there a flag that I have to set, or do I have to implement that behavior in the event handler (probably OnSelectionModifying).

Thanks,

Cyrinael
  
Back to top
 
IP Logged
 
Cyrinael
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 42
Joined: Jul 22nd, 2016
Re: Resizing of Node doesn't resize attached Nodes
Reply #1 - Jul 27th, 2016 at 7:41am
Print Post  
I think I have found the issue:
Code
Select All
    child.AttachTo(node, AttachToNode.TopLeft);
 



Is there a way to attach a node in such a way, that the position is not fixed and the size is also resized accordingly?

Thanks,

Cyrinael
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Resizing of Node doesn't resize attached Nodes
Reply #2 - Jul 27th, 2016 at 8:51am
Print Post  
try using this overload -

Code
Select All
public void AttachTo (
    DiagramNode node,
    GroupAnchorStyles anchorStyles
) 



The GroupAnchorStyles flags can be combined to specify one or more sides that should resize along with corresponding sides of the master node.

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


I Love MindFusion!

Posts: 42
Joined: Jul 22nd, 2016
Re: Resizing of Node doesn't resize attached Nodes
Reply #3 - Aug 2nd, 2016 at 8:34am
Print Post  
Hello Slavcho,

that solved my problem.

thank you,

Cyrinael
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint