1 Reply Latest reply on May 14, 2009 11:13 AM by Flex harUI

    popup with size proportional to its "parent"

    leoalvesmachado_

      Hi everyone...

       

      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

       

      --

      Leo