title: CommitProperties in a custom component doesn't work with percent width
body: <p>My problem is pretty much described in the title. Just a few details .. I'm creating a custom component (based on ComboBox) and overriding some base methods. Recently I've found it acts weird when I set it's width in percents, rather than a fixed width. It tends to continuously call the <code>commitProperties</code> method and fail in the end. When I set it's width to fixed value - all works like a charm. What am I missing to implement? Here's some code ..</p>
  
  <pre><code>override protected function commitProperties():void {
          super.commitProperties();
  
          //some stuff ...
  
          TextInput(textInput).setSelection(cursorPosition, cursorPosition);
          if (cursorPosition == textInput.text.length || cursorPosition == 0) {
              TextInput(textInput).horizontalScrollPosition = (cursorPosition == 0) ? 0 : textInput.width;
          }
      }
  </code></pre>
  
  <p>Here, the <code>textInput.width</code> properly returning a calculated value, in both cases.
  And, just for a case, if it's needed:</p>
  
  <pre><code>override protected function measure():void {
          super.measure();
          measuredWidth = 160;
      }
  </code></pre>
  
  <p>I'm not sure if something else is needed .. just ask if so.
  Thanks in advance :)</p>