Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Moveing child nodes automatically (Read 2864 times)
rajesh_patil74
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 220
Joined: Sep 3rd, 2009
Moveing child nodes automatically
May 6th, 2011 at 1:05pm
Print Post  
Hi Stoyo

I have a container node which contains child nodes.

When I move the container node, its child elements should be moved relative.

Which property i need to set so that movement will take place automatically.

-Rajesh
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Moveing child nodes automatically
Reply #1 - May 6th, 2011 at 2:00pm
Print Post  
Hi Rajesh,

Does the container's Children collection contain anything?

Stoyan
  
Back to top
 
IP Logged
 
rajesh_patil74
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 220
Joined: Sep 3rd, 2009
Re: Moveing child nodes automatically
Reply #2 - May 13th, 2011 at 7:56am
Print Post  
Hi Stoyo

I mailed you a sample application on your and support email address.

Will you please provide me solution for the issue.

-Rajesh
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Moveing child nodes automatically
Reply #3 - May 13th, 2011 at 9:24am
Print Post  
It seems this happens because the KeepInsideParent constraint refuses to move the child node if it is larger and outside the container. I am not sure what happens in IControlerContainerNode.MeasureOverride, but you can notice with a naked eye that the lane node is a couple of pixels larger than the pool node. So either disable KeepInsideParent or make sure the lane fits within the pool. Not related to the problem, but you should not move nodes from within MeasureOverride; do that from ArrangeOverride instead.
  
Back to top
 
IP Logged
 
rajesh_patil74
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 220
Joined: Sep 3rd, 2009
Re: Moveing child nodes automatically
Reply #4 - May 13th, 2011 at 9:44am
Print Post  
Thanks Stoyo

Its working properly, after changing the measureoverride to ArrangeOverride.

-Rajesh
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint