title: Flex: Make ComboBox dynamically resize so that it will always fit its contents?
body: <p>I've got a combo box like this:</p>
  
  <pre><code>&lt;mx:ComboBox dataProvider="{someArrayCollection}" /&gt;
  </code></pre>
  
  <p>But when the contents of <code>someArrayCollection</code> change, it leaves the combo box too small:</p>
  
  <p><img src="https://i.stack.imgur.com/IqFlP.png" alt="enter image description here"></p>
  
  <p>How can I trick the combo box into automatically resizing to fit the label of the largest item?</p>