0 Replies Latest reply on Jun 12, 2007 4:20 AM by Matt Poole

    ComboBox Problem

    Matt Poole
      Hi,

      Can any one help here?

      I'm having a problem where setting the dataprovider on a ComboBox wit relative positioning, breaks that positioning.

      I have this mxml code for the combo box:

      <mx:ComboBox id="filename_txt" bottom="10" left="79" right="145" editable="true" />

      ... and this code setting the :

      filename_txt.dataProvider = getFileList(filename_txt.text);

      When the dataprovider is set the width of the ComboBox jumps to the length of the longest string contained within the dataprovider, even though the width should be controlled by its postion relative to left/right. I've tried setting the dropDownWidth, but this just sets the width of the list that drops down.

      any ideas?

      Cheers
      Matt