Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ContainerNode.UpdateBounds and AutoShrink (Read 1288 times)
Novice
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Apr 19th, 2011
ContainerNode.UpdateBounds and AutoShrink
Apr 21st, 2011 at 9:02am
Print Post  
Hello

Please can you confirm that the way that containerNode.UpdateBounds() method operates is affected by the containerNode.AutoShrink property. 

It appears that a call to containerNode.UpdateBounds() will only reduce the size of a ContainerNode if the containerNode.AutoShrink property is true.  If AutoShrink is false and the containerNode could be reduced in size then containerNode.UpdateBounds() has no affect.

I can easily get around this by temporarily setting containerNode.AutoShrink to true, calling UpdateBounds() then re-setting containerNode.AutoShrink to false.  However I wonder whether this is intentional behaviour or if I yet again am not doing something quite right.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ContainerNode.UpdateBounds and AutoShrink
Reply #1 - Apr 21st, 2011 at 9:11am
Print Post  
Yes, that depends on AutoShrink. If it is set to false, containers will only grow when you add or remove items, or call UpdateBounds.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint