I have created an ItemRenderer for the Spark List component with the following code.
<?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">
<s:RichText left="10" top="10" bottom="10" paddingBottom="0" paddingLeft="0"
paddingRight="0" paddingTop="0" text="{data[1].toString()}" textAlign="left"
verticalAlign="middle" width="{parentDocument.width*0.96}"/>
</s:ItemRenderer>
The problem is that when too much data is passed, the List controller displays scrollbars. Adding right="10" does not work. I need a way so that no scrollbars are present at any size (this is an AIR application).
This code did the job.