2 Replies Latest reply on Mar 5, 2010 1:00 AM by Shongrunden

    Problem with S:List

    joelisaachart@gmail.com

      I have created a list using the following code. My problem is the last picture rendered in the list is getting about half of it cut off on the bottom when you scroll to the bottom of the list. Any Suggestions on how to fix this would be greatly appreciated.

       

      -Joel

       

       

      <s:List id="lstPhotos"

      x="624" y="127.5" width="201" height="460"   creationComplete="lstPhotos_creationCompleteHandler(event)" dataProvider="{getDataResult.lastResult}"

      change="lstPhotos_changeHandler(event)" contentBackgroundAlpha="0.0" borderVisible="false">

      <s:layout>

      <s:VerticalLayout gap="60" />

      </s:layout>

      <s:itemRenderer>

      <fx:Component>

      <s:ItemRenderer height="100" width="90%" buttonMode="true">

       

      <s:Group horizontalCenter="0" height="140" width="90%">

       

       

      <s:Rect radiusX="8" radiusY="8"

      width="102%" height="102%"

      fill="{new mx.graphics.SolidColor(0x000000,1)}"/>

       

      <mx:Image x="5" y="4" source="{'/images/product/' + data.thumfile}"

        horizontalCenter="0"/>

       

      <s:Label text="{data.name}"

      y="74" color="0xFFFFFF" width="100%" height="12"

      textAlign="center"/>

       

      </s:Group>

      </s:ItemRenderer>

      </fx:Component>

      </s:itemRenderer>

      </s:List>