Actually verticalGap is not a real style
for lists. Try using marginTop and marginBottom instead (on the List)
Matt
Hey Matt, thanks for the reply.
I tried changing the canvas to a VBox and also
adding the verticalGap
and leading properties to the VBox but it's not
not placing a gap in
between the items. Do you have any other ideas or
suggestions? I would
like a little gap between the cells. I even tried
putting a spacer
after the <text object in the VBox, nada..
Thanks again..
GM
On 11/2/05, Matt Chotin
<[EMAIL PROTECTED]> wrote:
>
>
>
> The verticalGap may get ignored with
cellRenderers, I can't remember. Try
> adjusting your Canvas instead to have the
gap, maybe use a VBox with margins
> instead?
>
>
>
> Matt
>
>
>
> ________________________________
>
>
> From: [email protected]
[mailto:[email protected]]
On
> Behalf Of Greg Morphis
> Sent: Wednesday, November 02, 2005
12:10 PM
> To: [email protected]
> Subject: [flexcoders] Gaps between list
items
>
>
>
> 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
>
>
>
> --
> 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
>
>
> Visit your group "flexcoders"
on the web.
>
> To unsubscribe from this group, send an
email to:
> [EMAIL PROTECTED]
>
> Your use of Yahoo! Groups is subject to
the Yahoo! Terms of Service.
>
> ________________________________
>
>
>
--
Auxilium meum a Domino
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|