You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Scott Matheson <sm...@intralinks.com> on 2014/03/18 19:17:22 UTC

event whenitem render is complete

is there an event when a itemrenderer is complete i.e. all items has even rendered from the data provider, i want to size the view stack when all items have been added minHeight does not seem to work, i end up with 10 lines when i only need 5





<common:ViewStack id="sentencesView" minHeight="0"

  dataProvider="{paragraphs}"

 width="100%"

 horizontalCenter="0"

  itemRenderer="com.peach.uofs.lesson.ParagraphRenderer"

  verticalCenter="0">

</common:ViewStack>


________________________________

Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.

Re: event whenitem render is complete

Posted by Javier Guerrero GarcĂ­a <ja...@gmail.com>.
A workarround here: in your itemrenderer, call the sizing function if data
= dataprovider's lastitem :)

P.S. Are you sure you can't do the sizing math in advance? If you adjust
the sizing at the end, it'll surely cause a re-rendering


On Tue, Mar 18, 2014 at 9:34 PM, Alex Harui <ah...@adobe.com> wrote:

> Most components dispatch updateComplete, but this looks like a custom
> ViewStack so I don't know how it actually works.
>
> On 3/18/14 11:17 AM, "Scott Matheson" <sm...@intralinks.com> wrote:
>
> >is there an event when a itemrenderer is complete i.e. all items has even
> >rendered from the data provider, i want to size the view stack when all
> >items have been added minHeight does not seem to work, i end up with 10
> >lines when i only need 5
> >
> >
> >
> >
> >
> ><common:ViewStack id="sentencesView" minHeight="0"
> >
> >  dataProvider="{paragraphs}"
> >
> > width="100%"
> >
> > horizontalCenter="0"
> >
> >  itemRenderer="com.peach.uofs.lesson.ParagraphRenderer"
> >
> >  verticalCenter="0">
> >
> ></common:ViewStack>
> >
> >
> >________________________________
> >
> >Disclaimer: This electronic mail and any attachments are confidential and
> >may be privileged. If you are not the intended recipient, please notify
> >the sender immediately by replying to this email, and destroy all copies
> >of this email and any attachments. Thank you.
>
>

Re: event whenitem render is complete

Posted by Alex Harui <ah...@adobe.com>.
Most components dispatch updateComplete, but this looks like a custom
ViewStack so I don't know how it actually works.

On 3/18/14 11:17 AM, "Scott Matheson" <sm...@intralinks.com> wrote:

>is there an event when a itemrenderer is complete i.e. all items has even
>rendered from the data provider, i want to size the view stack when all
>items have been added minHeight does not seem to work, i end up with 10
>lines when i only need 5
>
>
>
>
>
><common:ViewStack id="sentencesView" minHeight="0"
>
>  dataProvider="{paragraphs}"
>
> width="100%"
>
> horizontalCenter="0"
>
>  itemRenderer="com.peach.uofs.lesson.ParagraphRenderer"
>
>  verticalCenter="0">
>
></common:ViewStack>
>
>
>________________________________
>
>Disclaimer: This electronic mail and any attachments are confidential and
>may be privileged. If you are not the intended recipient, please notify
>the sender immediately by replying to this email, and destroy all copies
>of this email and any attachments. Thank you.