[flexcoders] Re: Why does percentWidth / percentHeight not work with popups?

2009-04-03 Thread skuteboarding
Thanks Alex

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 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
 



[flexcoders] Re: Why does percentWidth / percentHeight not work with popups?

2009-04-03 Thread skuteboarding
Hi Tracy, I originally tried that, but if you are using a transition (say, to 
resize over 500ms) it breaks the transition (it just instantly resizes).

Mark

--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 Suppose on resize you call PopUpmanager.centerPopUp()/
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of skuteboarding
 Sent: Thursday, April 02, 2009 5:36 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Why does percentWidth / percentHeight not work with
 popups?
 
  
 
 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