I think you'll just have to think of a way to keep track of the height
information for your data (either add it to the model, or put it in some
sort of look-up using the data or an ID from your data as a key). And simply
reset this information in "function set data(v)"
-Josh
On Wed, Jun 25, 2008 at 4:48 PM, Body Works Studio <
[EMAIL PROTECTED]> wrote:
> Anatole,
>
> thanks for writing back. Sorry this is a little beyond me. HOw would
> you use the code with a list renderer. what do I compare against?
> { Reference( data ).name }?
>
> Sorry that I am not following.
>
> Jeff
>
>
> --- In [email protected], "Anatole Tartakovsky"
> <[EMAIL PROTECTED]> wrote:
> >
> > You need to prevent itemRenderers from being reused. Here is a piece
> of my
> > old code to deal with it (in DataGrid)
> >
> > override protected function
> > addToFreeItemRenderers(item:IListItemRenderer):void
> > {
> > if (columnMap[item.name] &&
> > columnMap[item.name] is
> > com.theriabook.controls.dataGridClasses.DataGridColumn &&
> > columnMap[item.name].preventRendererReuse) {
> > delete rowMap[item.name];
> >
> > if (columnMap[item.name]) {
> > var c:Object = columnMap[item.name];
> > delete columnMap[item.name];
> > }
> > item.parent.removeChild(DisplayObject(item));
> > } else
> > super.addToFreeItemRenderers(item);
> >
> > }
> >
> > Complete source is in the old book code:
> >
> > http://samples.faratasystems.com/AdvancedDataGrid/index.html
> >
> > HTH,
> > Anatole Tartakovsky
> > Farata Systems
> > On Tue, Jun 24, 2008 at 12:06 PM, Body Works Studio <
>
>
>
> ------------------------------------
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>
--
"Therefore, send not to know For whom the bell tolls. It tolls for thee."
:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]