This content has been marked as final. Show 3 replies
The Text component by default is multiline
Thanks for the post.
What I am trying to accomplish is to have the grid "cell/row" expand and shrink up to a certain height, and then add scroll bars. The data is generally between 1 and 4 lines of text, however there are somtimes 50 - 100 lines.
I tried to use minHeight and maxHeight on a text component, and also textarea component with no success.
Here is some code that does not work;
<mx:GridRow maxHeight="122" width="100%">
<mx:GridItem maxHeight="122" colSpan="5" borderStyle="solid" borderThickness="1">
<mx:Text width="100%" minHeight="32" maxHeight="120"
Additionally I added variableRowHeight="true" to the parent mx:list container.
This code seems to cause each row of the list to be the same height, and scroll bars for each mx:grid, not the gridrow.
Ok, I'm bumping this to the top, in the hopes someone will know the answer...