Hi,
I am using PopupManager to display and center a popup around a button.
However, when the button is close to the border of the application, the popup  
is clipped .
The various comments in PopupManagerImpl.as centerPopUp() suggest  that 
off-screen clipping is somehow handled , but it does not seem to have any 
effect in that case.

Note: PopupAnchor does the clipping correctly, but I can't use it, as I am 
using Parsley / Cairngorm PopupWrapper.

Any idea ?

Sample code below:
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"; 
xmlns:s="library://ns.adobe.com/flex/spark">
    <s:Button id="btPopup2" top="80" right="50" label="Pop2" 
click="btPopup2_clickHandler(event)"/>
    <fx:Script><![CDATA[
        import mx.managers.PopUpManager;
        private function btPopup2_clickHandler(event:MouseEvent):void {
            var panel: Panel = new Panel();
            with(panel){
                id="panel";
                title="Panel2";
                width=200;
                height =150;
            }
            PopUpManager.addPopUp(panel,btPopup2);
            PopUpManager.centerPopUp(panel);
        }
        ]]></fx:Script>
</s:Application>


Maurice Amsellem
SYSTAR R&D - BusinessBridgeFX
[Description : Telephone:] +33(0)1 49 11 45 62  /  [Description : Mobile 
Phone:] +33(0)6 07 48 95 43

Reply via email to