Basically yes. Parents size their children in Flex and popups don't have a parent. (actually they do because they are parented by SystemManager, but SystemManager doesn't layout its children.
Alex Harui Flex SDK Developer Adobe Systems Inc.<http://www.adobe.com/> Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Sam Lai Sent: Thursday, April 02, 2009 3:15 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Why does percentWidth / percentHeight not work with popups? I can confirm the issue and had to manually size it via the resized event. Maybe it's because the popup is not part of the window/app's display list, but instead a separate controlled by PopupManager? On 4/3/09, skuteboarding <m...@mark-ingram.com<mailto:me%40mark-ingram.com>> wrote: > I'm trying to create a popup at 100% of the width / height of the > application. But it just ignores these values. I've had to work around the > problem by doing: > > BindingUtils.bindProperty(popup, "width", this, "width"); > BindingUtils.bindProperty(popup, "height", this, "height"); > > (Where 'this' is the application). > > The reason I'm trying to do this is I've got a popup that I want centred in > the view, but it has different states which change the size of the popup. > > Mark > > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links > > > > -- Sent from my mobile device