I'm trying to make a popup component whose size is proportional to the parents size (width). the component in the popup extends TitleWindow.
I've tried to set the width to 100% in the header of the mxml component, I've also tried to do this in actionScript, setting the percentWidth propertie do 100 and to set the width = parent.width just before calling "PopUpManager.addPopUp(popup, parent, true);". however, it didnt work as expected.
Does anyone here knows how to do it, or has a sample code that does it?
Thanks in advance for your answers
I would expect the following to work:
popup.width = parent.width;
popup.height = parent.height;
PopUpManager.addPopUp(popup, parent, true);
However if parent is not validated, you might need to wait or call parent.getExplicitOrMeasuredWidth/Height instead
Flex SDK Developer
Adobe Systems Inc.