title: How can I resize a VGroup in actionscript automatically, when some of its children are not visible?
body: <p>I have some HGroups inside of a VGroup. Some of the HGroups may not be visible based on the user selections. I want to re-size the height of VGroup based on its children visibility.
  Any recommendation would be much appreciated
  The following is my code in Flex:</p>
  
  <pre><code>&lt;s:VGroup id="vgroup01" visible.stateDefault="false" includeInLayout.stateDefault="false" width="100%" autoLayout="true" &gt;
      &lt;s:HGroup id="hgrp01" gap="3" width="100%" horizontalAlign="left" verticalAlign="middle"&gt;...&lt;/s:HGroup&gt;
      &lt;s:HGroup id="hgrp02" gap="3" width="100%" horizontalAlign="left" verticalAlign="middle"&gt;...&lt;/s:HGroup&gt;
      &lt;s:HGroup id="hgrp03" gap="3" width="100%" horizontalAlign="left" verticalAlign="middle"&gt;...&lt;/s:HGroup&gt;
  &lt;/s:VGroup&gt;
  </code></pre>