i've got a fairly simple grid cell renderer:

<?xml version="1.0" encoding="utf-8"?>
<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml";
toolTip="{data.name}" width="100%" verticalGap="0" verticalAlign="top"
paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0"
horizontalGap="0">
        <mx:Image source="{data.imgSource}" height="16" width="16" 
id="legendSwatch"/>
        <mx:Text text="{data.label}" fontSize="8" fontStyle="normal"
fontWeight="normal" textAlign="left" textDecoration="none"
selectable="false" id="legendText"/>
</mx:HBox>

works ok but the text bit isn't word wrapping at all. this is in a
pretty cramped spot (width-wise) & w/out word wrapping flex is
throwing up some big ugly scroll bars that obscure the data
completely. word wrapping does work for plain grid cells, just seems
to fail when in a renderer. i can turn horizontalScrollPolicy off but
i'd rather it wrapped. variable row height is turned on for the grid.

any ideas?

thanks.

Reply via email to