Can you post a link to a screenshot of the results?  Is there enough room
for the dialog?

-Alex

On 8/21/14 1:42 PM, "Scott Matheson" <[email protected]> wrote:

>Hi
>   I have a custom popup and I can not centre the popup in the parent
>window  the top of the popup is the current curser possition
>
> this is my code (the main bits)
>
>
>private var popup:setApage;
>
>
>
> // method to open the PopUp Window on creationComplete
>
> private function openPopUpWindow(evt:Event):void {
>
> // open the PopUp Window as a modal popup window
>
> // and store it in a variable for later use
>
> popup = PopUpManager.createPopUp(this, setApage, true ) as setApage;
>
> PopUpManager.centerPopUp(popup);
>
> popup.addEventListener("closeAPage", closePopUpWindow)
>
>
>
>}
>
>
>the dialog is
>
>
>----setApage--------
>
>
>
><?xml version="1.0" encoding="utf-8"?>
>
><s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009";
>
>  xmlns:s="library://ns.adobe.com/flex/spark"
>
>  xmlns:mx="library://ns.adobe.com/flex/mx"
>
>  width="290" height="444"
>
>  cornerRadius="10"
>
>  borderVisible="true"
>
>  borderColor="#ABA9A9"
>
>  borderWeight="1"
>
>  backgroundColor="#FFFFFF"
>
>  xmlns:buttons="com.peach.uofs.components.buttons.*"
>xmlns:model="com.peach.uofs.model.*">
>
>
>       <buttons:MarkWithTick bottom="55" click="closeApage(event)"
>horizontalCenter="0"
>
>  currentState="tomark"
>
>  scaleX="2" scaleY="2"
>
>  skinClass="com.peach.uofs.components.buttons.MarkWithTickStarBigClass"/>
>
><mx:HRule top="20" width="95%" height="4" horizontalCenter="0"/>
>
><mx:HRule bottom="20" width="95%" height="4" horizontalCenter="0"/>
>
><s:Label bottom="30"  horizontalCenter="0"
>styleName="DarkGrayVerySmallLable" text="Cancel"
>click="closePopUpWindow(event)"/>
>
><s:VGroup x="99" y="252">
>
><s:RadioButton value="1"  width="88" label="Continue"
>change="changeAction(event)"/>
>
><s:RadioButton  value="2" width="88" label="Reset"
>change="changeAction(event)"/>
>
><s:RadioButton  value="3" width="88" label="Review"
>change="changeAction(event)"/>
>
></s:VGroup>
>
><mx:DateChooser x="63" y="32"  change="changeReveiwDate(event)"/>
>
></s:BorderContainer>
>
>
>
>________________________________
>
>Disclaimer: This electronic mail and any attachments are confidential and
>may be privileged. If you are not the intended recipient, please notify
>the sender immediately by replying to this email, and destroy all copies
>of this email and any attachments. Thank you.

Reply via email to