Yeah, if you don't get that right then the parent gets width=200 so the child 
gets width=200 then the parent measures at 202 because of a border or something 
so it gets width at 202 so the child gets width=202 and the parent now measures 
at 204...

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of flexaustin
Sent: Friday, October 09, 2009 2:10 PM
To: [email protected]
Subject: [flexcoders] Re: Custom PopUp not resizing.



Thanks, Alex. The issue was setting width and height so my override measure was 
never getting called. And I had a couple of component referencing/bound 
{this.width} and {this.height} caused some kind of infinite loop or something?

Set all to minWidth and minHeight all works now.

Jason

--- In [email protected]<mailto:flexcoders%40yahoogroups.com>, Alex 
Harui <aha...@...> wrote:
>
> Maybe you're measured size doesn't match the size you're setting, or maybe 
> the setting of the size causes something to be invalidated and go through the 
> whole sizing pass again. Setting breakpoints in LayoutManager can help you 
> find the problem.
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.<http://www.adobe.com/>
> Blog: http://blogs.adobe.com/aharui
>
> From: [email protected]<mailto:flexcoders%40yahoogroups.com> 
> [mailto:[email protected]<mailto:flexcoders%40yahoogroups.com>] On 
> Behalf Of flexaustin
> Sent: Friday, October 09, 2009 9:04 AM
> To: [email protected]<mailto:flexcoders%40yahoogroups.com>
> Subject: [flexcoders] Re: Custom PopUp not resizing.
>
>
>
> So I swapped out Box with s:Panel as the base of my custom component. If I 
> don't set set height or width in my component then Flash freezes and says the 
> script is running longer than 15 seconds. Also this same thing happened when 
> I was using mx:Box as the base of my component. This is happening without me 
> overriding any of the measure, commitProperties, etc... functoins. Any 
> suggestions?
>
> Jason
>
> --- In 
> [email protected]<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com>,
>  Alex Harui <aharui@> wrote:
> >
> > Popups are a special case. Panel/TitleWindow know when they've been popped 
> > up and resize themselves. You'll have to teach your Box to do the same.
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.<http://www.adobe.com/>
> > Blog: http://blogs.adobe.com/aharui
> >
> > From: 
> > [email protected]<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com>
> >  
> > [mailto:[email protected]<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com>]
> >  On Behalf Of flexaustin
> > Sent: Thursday, October 08, 2009 2:07 PM
> > To: 
> > [email protected]<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com>
> > Subject: [flexcoders] Custom PopUp not resizing.
> >
> >
> >
> > I have a custom popup based on mx:Box. In it I have a dropdown. In this 
> > list dropdown you can select multiple items that once items are selected 
> > they stay in the dropdowns selected box (think multiselect combobo box). My 
> > custom pop has a width and height set to 300 by 300;
> >
> > Anyway, when I select several items the pop (not the dropdownlist) starts 
> > adding scrollbars when there are to many. If I set the 
> > horizontalscrollpolicy and verticallscrollpolicy to off then the pop start 
> > moving out of what looks like the popups viewablearea/scrollRect?
> > So as the selecteditems in my dropdown gets longer the top of the popup 
> > start disappearing?
> >
> > Does the popupmanager need to know to increase its viewable area for the 
> > popup? Or is it possible to have a popup increase in size?
> >
>

Reply via email to