title: Flex: when hiding components in flex
body: <p>When I set a component to visible=false the component hides, but how do I get it to take no space (get the container it belongs to to resize??)</p>
  
  <p></p>
  
  <pre><code>&lt;mx:HBox width="100%" height="100%"&gt;
  ...
  &lt;/mx:HBox&gt;
  
  &lt;mx:HBox width="100%" id="boxAddComment" visible="false" &gt;
      &lt;mx:TextArea id="txtComment"/&gt;
      &lt;mx:Button label="Spara" click="addComment();"/&gt;
  &lt;/mx:HBox&gt;
  </code></pre>
  
  <p></p>
  
  <p>When boxAddComment is visible=false I want the first HBox to take 100% height.</p>