2 Replies Latest reply on Feb 11, 2010 6:29 PM by timoxley

    Resize parent to contain children? Simple solution?

    timoxley

      Let's say I have this:

       

       

       

      <s:Group minWidth="100" minHeight="100">
      <s:Group width="200" height="200" />
      </s:Group>
      
      

       

      The parent group automatically resizes to contain the child.

       

      But what if I add the 200x200 child dynamically? The parent stays the same size! #%$&*!  I've tried every invaldiate method I can find, none seem to trigger a parent resize.

       

      How can I get the parent to resize to contain the child??

       

      Check out my example app here:

       

      http://gist.github.com/301292