4 Replies Latest reply on Dec 5, 2011 12:00 PM by Rick.Blacker

    issue with list and item render not displaying last item

    Rick.Blacker Level 1

      Hey all...

       

      I have a strange issue with a spark list and an item renderer.  All I'm wanting to do is display images. However, the last image is not being rendered. The code is very simplistic. The HGROUP is only rendering the first two images. However, if I add a <s:lable> tag to the HGROUP after the image, all three of the images I'm expecting to render DO show up.  Anyone know why?

       

       

      Thanks in advance!!!!

       

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx"
          autoDrawBackground="true">

       

      <fx:Script>
        <![CDATA[
         import valueObjects.ManufacturerIconBE;
        
         [Bindable] private var comp:ManufacturerIconBE;
        
         override public function set data( value:Object ):void
         {
          comp = value as ManufacturerIconBE;
         }
        ]]>
      </fx:Script>

      <s:HGroup>
        <s:Image source="{comp.imagePath}" />
      </s:HGroup>

       

      </s:ItemRenderer>