With the old mx Text component, I could specify a percentage width, and have the height of the Text component automatically increase to show all the text. I'm switching over to use the spark RichText component, and now this automatic wordwrap does not work with a percentage width (or by setting both left and right styles) - it just displays the first line of text and that's it. It still works if I set an explicit width in pixels, but I want to be able to set a percentage width.
Is there a way to get the height to calculate automatically like it did before when using a percentage width?
I tried it and got it to work for me. Watch out for minWidth on the app
tag. That can keep the app from shrinking enough to sqeeze the RichText.
Thanks for looking at it. After some more digging, I found that it was because the RichText was inside a mx Canvas container. I replaced it with a spark Group and it worked.