1 Reply Latest reply on Oct 21, 2010 10:05 PM by Flex harUI

    keep text in custom itemRenderer within 'cell'

    gtbus

      I created an ItemRenderer for a dataGridColumn by extending the spark ItemRenderer class (<s:ItemRenderer></s:ItemRenderer>).  My itemRenderer consists of various Labels (I'm using spark labels) one below the other.  Sometimes the bottommost label has a lot of text to display and this text is 'spilling' out from the cell.  I can't find a way to keep it within (it would be fine to 'truncate' it, and only show whatever there's space for).

       

      I've tried using the mx:Text component, and setting its width, but same thing happens, text 'spills' (in this case to the cell below).

       

      Any ideas please? Thanks!

      Gtb