Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Saving and Reloading node position and size info (Read 1358 times)
jmquinlan
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 67
Joined: Apr 2nd, 2009
Saving and Reloading node position and size info
May 11th, 2009 at 5:34pm
Print Post  
Whats the best way to reload node positional and size information?

I'm currently itterating through all my nodes and saving an id with position and size.

Then on reload once all nodes have been loaded and parented and added to the diagram, I am reading back in the position and size and setting these directly on the nodes.

However I'm getting strange results with adding nodes back into containers esp where a container is inside another container. Its almost like the nodes are missing an offset even though I think the positions I have are absolute document position and not local relative positions to the container.

any help on this matter would be great.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Saving and Reloading node position and size in
Reply #1 - May 12th, 2009 at 7:29am
Print Post  
Try calling ContainerNode.UpdateBounds after adding the child nodes.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
jmquinlan
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 67
Joined: Apr 2nd, 2009
Re: Saving and Reloading node position and size in
Reply #2 - May 18th, 2009 at 4:34pm
Print Post  
Brilliant it did thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint