Hello, I seem to be having an issue with getting text to display multiline for some reason. I've created an item renderer for a List component (yes - the list has variableRowHeight="true" already set).
The basic structure of the renderer is below.
Problem
If I
don't set height to be 100% then some of my text on the bottom line gets cut off, but at least my text does wrap,
but if I do set the height, then my text doesn't wrap at all.
Any suggestions?
here is the outline:
ActionScript Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off">
<mx:HBox width="100%" height="100%">
<mx:Image id="img" width="80" height="80" source="{data.img}"
<mx:VBox width="100%" height="100%">
<mx:Label text="Person: {data.person}" />
<mx:Label text="Date: {data.date}" />
<mx:Text text="Description: {data.description}" width="100%" height="100%" />
</mx:VBox>
</mx:HBox>
</mx:VBox>
Edit - behaves in the same way regardless of me specifying width="100%" in the Text component.
I want the content to push out as far as it can, but because I've got the horizontal scroll policy off I want it to wrap.