Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to stick ShapeNodes ? (Read 1641 times)
ORiL
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Aug 16th, 2011
How to stick ShapeNodes ?
Jun 19th, 2012 at 2:54pm
Print Post  
Hi again,

This time, I would like to stick 2 nodes one on the other. These nodes are attached to a ContainerNode :
http://hpics.li/74e229d <= target

I do not find the way to place these nodes correctly and to keep them at their location relative to the container.

Any suggestion ?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to stick ShapeNodes ?
Reply #1 - Jun 19th, 2012 at 4:19pm
Print Post  
When you add nodes to a container, the nodes stay in place and the container grows to include their boundaries. You could enable the container's AutoShrink property and it should fit more tightly around the added nodes, or after adding them you could call container.SetBounds(rect, false, false) to specify the exact container position and size.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint