0 Replies Latest reply on Oct 7, 2007 1:46 PM by joeyadms

    Images in Tilelist not actual size

    joeyadms
      I am pulling urls from my database and having them and a small caption populate a tilelist. The images vary in size and I am wanting them to show up their actual size and will have 1 row in the TileList and just scroll horizontally to view the images inline.

      However, when I use my custom itemrenderer I cannot seem to get it to appear actual size, instead it creates scrollbars and a fixed size as you can see in the photo below.
      Example

      Any help with either situation is appreciated.

      Here is some relevant code

      // Custom Renderer
      <?xml version="1.0" ?>
      <!-- Custom Renderer -->
      <mx:Canvas xmlns:mx=" http://www.adobe.com/2006/mxml" width="100%" height="100%">
      <mx:Image id="image" source="{data.source}" />
      <mx:Label text="{data.name}" y="275" fontSize="16" horizontalCenter="0"/>
      </mx:Canvas>

      //// Tile List
      <mx:TileList dataProvider="{photoList.lastResult.images.image}" itemRenderer="Thumbnail" y="41" x="0" width="100%" height="90%" variableRowHeight="true"></mx:TileList>