Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic A question about size of diagramview (Read 1121 times)
CanadaProgrammer
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 113
Joined: Jun 30th, 2011
A question about size of diagramview
Jul 26th, 2012 at 1:15am
Print Post  
I can move a shape to a location where is out of the client of a diagram, so
the size of client will increase automatically. When I move the shape back to
the original location, but the size of client will not decrease automatically.

How to decrease the size automatically? Thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: A question about size of diagramview
Reply #1 - Jul 26th, 2012 at 9:56am
Print Post  
You could call ResizeToFitItems from the NodeModified handler:

Code
Select All
private void diagram_NodeModified(object sender, NodeEventArgs e)
{
	diagram.ResizeToFitItems(5);
} 



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