Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Preserve relative position of an attached Node (Read 2861 times)
Amx
YaBB Newbies
*
Offline


digito ergo sum

Posts: 21
Joined: Jan 19th, 2010
Preserve relative position of an attached Node
May 17th, 2010 at 3:27pm
Print Post  
Hi,

I have a DiagramNodeAdapter attached to a container by
Code
Select All
adapter.AttachTo(container, AttachToNode.BottomRight); 



If I manually resize container (by dragging resize handles), the Adapter node remain attached to bottom right corner (respecting the behaviour I expect).
Else, if I add a ShapeNode to container (stretching the container), the Adapter remain to initial position, changing its XY offset respect bottom right corner.
How to avoid this?

Thank's in advance,
Amx

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Preserve relative position of an attached Node
Reply #1 - May 17th, 2010 at 4:49pm
Print Post  
Hi,

Containers use the same SubordinateGroup to store their children, and it seems in this case the container treats  the attached node just as its child nodes. We'll try to implement some fix for this in the next couple of days.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Preserve relative position of an attached Node
Reply #2 - May 18th, 2010 at 6:50am
Print Post  
  
Back to top
 
IP Logged
 
Amx
YaBB Newbies
*
Offline


digito ergo sum

Posts: 21
Joined: Jan 19th, 2010
Re: Preserve relative position of an attached Node
Reply #3 - May 18th, 2010 at 8:46am
Print Post  
Work great,

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