Trying to build a chat box view. I'm at the stage where I create the list of messages. Each message should contain a user icon, formatted user name, and the message text. The message text part is the thing that's getting me. It could be of varying length, so it will need to wrap. It's container will, therefore, need to size vertically depending on the text length.
I have an item renderer now that does all but the vertical sizing based on text length. It's an HBox component with an icon and a text area in it. Not quite getting it. The text scrolls instead of wrapping and expanding vertically.
My Flex Cookbook post on creating a dynamically resizing TextArea without scrollbars may help:
It doesn't wor very well in DataGrids, but as a standalone component it should be a good start for you.
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
Flex / AIR Development, Training, and Support Services