3 Replies Latest reply on May 31, 2010 7:36 AM by kiran@flex

    Problem with itemRenderer


      Hello everyone!

      I've got an little probs with my file attachment item renderer. I have list component of which have a arrayCollection as a dataprovider. The problem is when I'm adding items to array, long file name does no fit in  the renderer. First item in the list orders each item width, so if the  first filename is long others fit in, but if Im adding an item  with short filename and second item has a long filename, long file name  does not fit in. This upload file list have a itemrenderer like:


      <?xml version="1.0" encoding="utf-8"?>
      <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" horizontalScrollPolicy="off" verticalScrollPolicy="off" minHeight="0" minWidth="0">
          <mx:Image id="fileImage" source="images/fileAtt.png" doubleClick="parentDocument.deleteFile();" doubleClickEnabled="true" useHandCursor="true" buttonMode="true"
              mouseChildren="true" toolTip="Double click to delete" width="16" horizontalCenter="0" top="10"/>
          <mx:HBox y="34" height="26" horizontalAlign="left" horizontalCenter="0" verticalAlign="middle" horizontalGap="0">
              <mx:Label text="{data.name}, {data.size}" id="lblFile" color="#000000"/>




      Any comments on this?