Sorry, that level of graphics behavior is beyond me.  Maybe someone else
will help.  If no one helps on this thread, start another topic with
this current issue.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of gdoucen
Sent: Wednesday, January 03, 2007 3:42 AM
To: [email protected]
Subject: [flexcoders] Re: expandable itemRenderer with state inside a
list

 

Thanks tracy. 

It works now...But the behavior of the scrollbar when scrolling is
annoying. It resizes itself all the time. I suppose that items that
are no longer visible are removed from the displayList. This behavior
is ok when all items have the same height.

have u any idea to change this?

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Ah, yes, I'd read your post, but hadn't thought through the logic to
see
> that set data would need to be called on resize.
> 
> 
> 
> Did you look into updateDisplayList?
> 
> 
> 
> Tracy
> 
> 
> 
> ________________________________
> 
> From: [email protected] <mailto:flexcoders%40yahoogroups.com>
[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of Jim Robson
> Sent: Tuesday, January 02, 2007 1:14 PM
> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Re: expandable itemRenderer with state inside a
> list
> 
> 
> 
> Tracy:
> 
> I think that your comments here address the question I was trying to
> ask in my post. This would seem to explain why the set data() function
> is called on resize: When the item renderer's contents are resized,
> the DataGrid needs to re-draw itself (just as it does on scrolling);
> your comments below seem to explain why the DataGrid calls set data()
> when it redraws itself.
> 
> Thanks!!!
> 
> -Jim
> 
> --- In [email protected]
<mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%40yahoogroups.com>
> , "Tracy Spratt" <tspratt@> wrote:
> >
> > To make itemRenderer states work correctly during scrolling, you
must
> > update a dataProvider item property to record that state on user
> action,
> > then in the set data() function, ( or in the "updateDisplayList()"
> > function) you must read this state property and set the item
renderer
> > state accordingly.
> > 
> > 
> > 
> > List-based controls re-use the same visual elements when you scroll,
> > they just change the data.
> > 
> > 
> > 
> > Tracy
> > 
> >
>

 

Reply via email to