You will need to override measure() and set measuredHeight based on
explicitWidth.  There is code like that in ListItemRenderer

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of davidch204
Sent: Monday, November 12, 2007 2:30 PM
To: [email protected]
Subject: [flexcoders] Re: Custom List component Height Issue

 

Hi Alex, the thing is I list other data, I just left out the component
in my example below, but basically its a <LinkButton>. That's why I
use the renderer. That and I style the renderer also.

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> That renderer should not be necessary. Set wordWrap and
> variableRowHeight=true on the list
> 
> 
> 
> ________________________________
> 
> From: [email protected] <mailto:flexcoders%40yahoogroups.com>
[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of davidch204
> Sent: Monday, November 12, 2007 11:58 AM
> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Custom List component Height Issue
> 
> 
> 
> Hi all, I created a custom item renderer and in it I have:
> 
> <Canvas>
> <HBox>
> <Text>
> </HBox>
> </Canvas>
> 
> The text inside <Text> includes spaces like /r, so most items take up
> at least two lines. However my problem is that it only seems to be
> rendering the first line of text and is not displaying the rest.
> 
> If I set the height strictly it'll display the full text, but this
> would seem odd for items that are only one line of text.
> 
> Anyone have issues/solutions with variable heights in list items?
>

 

Reply via email to