Hiya,

When using cellrenderer to populate a list ex:
        <mx:List width="100%"
                        height="100%"
                        borderStyle="none"
                        rowHeight="25"
                        marginLeft="30"
                        marginRight="30"
                        textAlign="center"
                        verticalGap="100"
                        id="acts"
                        dataProvider="{ myDP }"
                        labelField="activity"
                        rollOverColor="0xFFFFFF"
                        selectionColor="0xFFFFFF"
                        initialize="AddActivityViewHelper.getActivities()"
                        
change="mx.core.Application.alert(event.target.selectedItem.color)"
                        
cellRenderer="com.alltel.rapid.aopscheduler.view.ActivityCellRenderer"
                        dragEnabled="true">
        </mx:List>


I cannot seem to get the verticalGap to work.
The cellRenderer is pretty plain...

<?xml version="1.0" encoding="UTF-8"?>

<mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml"; height="49"
width="100%" >
        
        <mx:Script>
        <![CDATA[
                function setValue( str:String, item:Object, sel:Boolean ) {
                        
                        this.d.text = item.activity;
                        this.setStyle("backgroundColor", item.color);
                }
        ]]>
        </mx:Script>


        <mx:Text id="d"
                        height="100%"
                        width="100%"
                        marginTop="5"
                        marginBottom="5"
                        fontSize="12"
                        fontWeight="bold"
                        selectable="false"/>
</mx:Canvas>


Everything I try to put a small gap fails. Can someone offer any suggestions?

Thanks!


--
Auxilium meum a Domino


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to