I'll try that out, is there an event I can listen for when a layout has
completed all of it's measurements and positionings?

Thanks!


Kyle McKnight
Senior UI Engineer - Accesso
602.515.1444 (M)

On Tue, Oct 25, 2016 at 4:40 PM, Alex Harui [via Apache Flex Users] <
[email protected]> wrote:

>
>
> On 10/25/16, 11:43 AM, "kamcknig" <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=13933&i=0>> wrote:
>
> >I am not because I would like them to be dynamically sized. The only
> width
> >I believe I have set is on the renderer itself I set the minWidth to 150.
>
> Yeah, that sounds like a scenario we hit often.  I often really only want
> a renderer to be dynamically sized at startup or when the app is resized,
> but not on every update.  The solution is to make sure your renderers do
> not change their measured size based on content.  That can be hard if
> sub-components have scrollbars or are otherwise flexible.  Another trick
> I've used is to wait until the layout has run once (and hopefully chosen
> good sizes) then go and run code to set the renderer's size explicitly.
> Even something as simple as
>
>    renderer.explicitWidth = renderer.width;
>
> can be sufficient.
>
> HTH,
> -Alex
>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-flex-users.2333346.n4.nabble.com/Do-
> ItemRenderer-s-get-reused-across-different-components-tp13928p13933.html
> To unsubscribe from Do ItemRenderer's get reused across different
> components?, click here
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=13928&code=a2FtY2tuaWdAZ21haWwuY29tfDEzOTI4fC0xNTg3MjQ1NTM4>
> .
> NAML
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/Do-ItemRenderer-s-get-reused-across-different-components-tp13928p13934.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to