Re: [flexcoders] Custom List Item Render to have multiline (so variable Height)

2009-02-04 Thread Jeffry Houser
Have you written any code in your itemRenderer to change the height (this.height) to match the TextArea height? In an itemRenderer, I would expect this code to exist in some dataChange event handler. Also, what happens if you set variableRowHeight to true? I'm unclear if that would have an

Re: [flexcoders] Custom List Item Render to have multiline (so variable Height)

2009-02-04 Thread Doug McCune
I've pretty much never been able to use variableRowHeight in a real world scenario. Once you start scrolling with item renderers that need to measure themselves based on data, it all gets completely messed up. I'd love it if someone knew how to get it working all the time (as opposed to only on the

Re: [flexcoders] Custom List Item Render to have multiline (so variable Height)

2009-02-04 Thread Flap Flap
thanks I'll give a try to handle height in dataChange. variableRowHeight is already set to true, it's mandatory has my item will be different... BenoƮt Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net On Wed, Feb 4, 2009 at 10:4

RE: [flexcoders] Custom List Item Render to have multiline (so variable Height)

2009-02-04 Thread Alex Harui
t: Re: [flexcoders] Custom List Item Render to have multiline (so variable Height) I've pretty much never been able to use variableRowHeight in a real world scenario. Once you start scrolling with item renderers that need to measure themselves based on data, it all gets completely messed up. I&#x

RE: [flexcoders] Custom List Item Render to have multiline (so variable Height)

2009-02-04 Thread Alex Harui
: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Flap Flap Sent: Wednesday, February 04, 2009 1:54 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Custom List Item Render to have multiline (so variable Height) thanks I'll give a try to handle heig

Re: [flexcoders] Custom List Item Render to have multiline (so variable Height)

2009-02-04 Thread Fotis Chatzinikos
Have a look at the following bits of a working variableRowHeight item renderer (I am using it it to display conversation like comments on pictures): Pay attention to: minHeight="0" //to accomodate for really short renderers change="invalidateSize()" //re-measure on text c

Re: [flexcoders] Custom List Item Render to have multiline (so variable Height)

2009-02-04 Thread Fotis Chatzinikos
Doug, have you tried adding the following on the textarae? It solves real world renderer recycling :-) minHeight="0" //to accomodate for really short renderers change="invalidateSize()" //re-measure on text change when a renderer is recycled new text from the data provider is f

Re: [flexcoders] Custom List Item Render to have multiline (so variable Height)

2009-02-04 Thread Doug McCune
Perhaps I was a bit harsh in my initial comment about variableRowHeight :) I'll certainly try some examples and report back on what works and what doesn't for me. Maybe I've just always done my custom renderers wrong somehow for working with variableRowHeight with scrolling. Doug On Wed, Feb 4,

Re: [flexcoders] Custom List Item Render to have multiline (so variable Height)

2009-02-05 Thread Flap Flap
Thanks guys for all that clues. I will give a try and send feedback. For info, I've just used TextArra for a multiline text item, I don't need any editable behavior on it. Thx Benoit aka Flapflap

RE: [flexcoders] Custom List Item Render to have multiline (so variable Height)

2009-02-05 Thread Alex Harui
lexcod...@yahoogroups.com] On Behalf Of Flap Flap Sent: Thursday, February 05, 2009 1:12 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Custom List Item Render to have multiline (so variable Height) Thanks guys for all that clues. I will give a try and send feedback. For info, I'v