Oh, I totally understand, and had no such expectation. I just didn't understand your suggestion, given the hierarchy I included in the question. I wanted to make sure there wasn't a property on Canvas or something I was unaware of.
On Mon, Jul 28, 2008 at 11:11 AM, Alex Harui <[EMAIL PROTECTED]> wrote: > Richard, > > > > It isn't possible for me to remember how you'lve implemented things, or go > back and find your code cuz I'm usually in a hurry. > > > > If you're based on Navigators, you can use resizeToContent. Containers may > need to use autoLayout. UIComponent should get its measure method called > always. > > > > -Alex > > > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Richard Rodseth > Sent: Monday, July 28, 2008 11:06 AM > To: [email protected] > Subject: Re: [flexcoders] Measurement and template component > > > > On what? I see there's such a property on Accordion and a few other > standard components, but all we have here is my custom TiledCanvas > (latest version of the one I sent you a while back) and a few other > custom and MXML components. Thanks. > > On Mon, Jul 28, 2008 at 10:53 AM, Alex Harui <[EMAIL PROTECTED]> wrote: >> resizeToContent? >> >> >> >> ________________________________ >> >> From: [email protected] [mailto:[EMAIL PROTECTED] On >> Behalf Of Richard Rodseth >> Sent: Monday, July 28, 2008 10:31 AM >> To: [email protected] >> Subject: [flexcoders] Measurement and template component >> >> >> >> My application has a structure like this, portions of which are >> created dynamically: >> >> TiledCanvas >> PodChrome(instance 1) >> ReportModuleA >> ReportChrome(instance 1) >> ReportA >> Grid >> PodChrome(instance 2) >> ReportModuleB >> ReportChrome(instance 2) >> ReportB >> Chart >> etc. >> >> PodChrome and ReportChrome are template components. >> TiledCanvas is functional - when tiling it correctly reflects a >> minWidth/minHeight set way deep (eg. on the Grid), or set dynamically >> on ReportA or ReportB when the state of ReportModuleA or B changes. >> >> BUT. The above only works if I omit the ReportChrome wrapper. >> ReportChrome is just a Canvas with two >> states, that does an addChild in init(). I added a call to >> this.invalidateSize() and child.invalidateSize() after the addChild() >> to no avail. Any debugging tips or ideas on what I could be doing wrong? >> >> > >

