Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Container Caption sizing (Read 1760 times)
j poz
Junior Member
**
Offline


I Love MindFusion!

Posts: 78
Joined: Nov 21st, 2012
Container Caption sizing
Oct 31st, 2016 at 4:15pm
Print Post  
When I set the Caption of an empty ContainerNode I notice the size of the container doesn't change right away to fit the Caption, even if I call UpdateBounds. Is there another call I should make after setting the Caption?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Container Caption sizing
Reply #1 - Oct 31st, 2016 at 6:24pm
Print Post  
ContainerNode's size does not depend on Caption and will not update automatically. You could call Diagram.MeasureString to find what size will fit the text and then calculate new Bounds value from it.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint