I have a datagrid that displays HTML content in one column. The
itemRenderer for that column is a simple <mx:Text >. The grid allows
variable row heights and the column allows for wordwrapping. Here is the
behavior:

    1. If no width is given for the rendering text control, it will not
wordwrap lines. It will wrap at html <br> tags though.
    2. Setting the width of the text control to 100% will wrap everything
correctly, initially, but once you start scrolling the grid vertically,
so that the cells scroll out of sight, the rendering goes awol. Rows and
cells that have displayed fine before scrolling the grid are now down to
1-liners and the variable height is gone...
    3. If I set the width of the text control to a fixed value, e.g. 300
pixels, everything works fine, wordwraps fine, and most importantly, it
stays that way even after scrolling up and down in the grid...

Argh.. Any ideas anyone ;-)

Thanks much

Reply via email to