Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic TreeLayout.Arrange() not updating Diagram.Bounds (Read 1452 times)
Rennie
Full Member
***
Offline


I Love MindFusion!

Posts: 108
Location: Copenhagen, Denmark
Joined: Jul 17th, 2012
TreeLayout.Arrange() not updating Diagram.Bounds
Jan 29th, 2013 at 11:38am
Print Post  
Not sure if this is a bug or a feature. When additional nodes are added to the diagram, but within the current DiagramView window width, and TreeLayout.Arrange() is then done, the horizontal scroll bar does not come into view even though some of the nodes are now off the right edge of the window. I've taken a look at Diagram.Bounds, and it looks like the width has not been updated either.

This was observed with Balance=Original, and now with Balance=Preserve in 6.0.2 beta.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: TreeLayout.Arrange() not updating Diagram.Bounds
Reply #1 - Jan 29th, 2013 at 12:12pm
Print Post  
None of the layout algorithms changes the diagram size. Call ResizeToFitItems after applying a layout, or set it to some union with GetContentBounds result if you need to enforce a minimum size.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Rennie
Full Member
***
Offline


I Love MindFusion!

Posts: 108
Location: Copenhagen, Denmark
Joined: Jul 17th, 2012
Re: TreeLayout.Arrange() not updating Diagram.Bounds
Reply #2 - Jan 29th, 2013 at 12:38pm
Print Post  
OK, great, thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint