Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flex 4: Is it possible to have a BorderContainer automatically size to the contents within it?

I have a BorderContainer with several objects inside of it. I want it to fit snugly around its own contents, but it doesn't. It seems the default size of a BorderContainer is 112x112. That is so wierd considering no other containers have that default size. Is there a way to set the width and heigh properties to "auto" or something like that?

like image 717
Tim Kindberg Avatar asked Apr 19 '10 12:04

Tim Kindberg


1 Answers

It is BorderContainerSkin that defines the minimal size to 112 pixels. Workaround : set the properties minWidth and minHeight of your BorderContainer to 0.

like image 109
flyo Avatar answered Oct 24 '22 10:10

flyo