Browser Resize/Maximize is not putting the PopUp at theCentre

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Browser Resize/Maximize is not putting the PopUp at theCentre

    Hi all,

    I have a mxml screen with id=myDisplayObj.I'm using this a PopUp.and placing
    this at the center using "PopUpManager.centerPopUp(myDisplayObj); ". Now i
    resize my Main browser window and invoke this PopUp screen. When i Maximize the
    Main Browser window, this PopUp Screen is not coming at the center of the
    browser. It stays at the same place where it was when the Browser window was
    resized.

    Please let me know how to put the PopUp Back to the Center of the Browser when
    its size is changed.

    Thanks in advance

    VishalHegde Guest

  2. Similar Questions and Discussions

    1. Custom control should resize when the browser is resized
      Hi everyone, I have created the custom control that will display some images and one div tag in the table format. When resizing the browser I...
    2. popup menu position: browser inconsistencies
      I am using Show/Hide Popup Menu function in Dreamweaver. I see that the position of the menu is not consistent across different browsers, as tested...
    3. Can you resize a PopUp?
      I have a popup window with a dynamic number of InputText fields, but the overall popup doesn't resize when I add more InputText fields. If its in a...
    4. resize browser & swf dynamically?
      I have embedded a flash swf in a table in an html page. I'd like to resize the page for larger browser windows and have the flash resize dynamically...
    5. Browser popup freezes while downloading
      We have build a site, where at a certain point we open a popup. From this popup we push a file to the end-user. While the file is being send to...
  3. #2

    Default Re: Browser Resize/Maximize is not putting the PopUp atthe Centre

    VishalHegde,

    I'd probably try adding a "resize" event listener to your <mx:Application/>
    tag. In the event handler, check that the myDisplayObj is popped
    up/created/visible and call "PopUpManager.centerPopUp(myDisplayObj);".

    Peter

    peterd_mm Guest

  4. #3

    Default Re: Browser Resize/Maximize is not putting the PopUp atthe Centre

    Thanks for your suggestion peterd_mm ,

    But, one thing is not clear for me. How can i access the reference of that
    PopUpObject. In my example,at run time 'myDisplayObj' will be different
    depending on which popup user want to use.

    Thanks in advance.


    VishalHegde Guest

  5. #4

    Post Re: Browser Resize/Maximize is not putting the PopUp at theCentre

    private function resizeApplication(evt:Event):void{
    var count:int=systemManager.popUpChildren.numChildren;// fetch number of popups opened that needs to be resized with broswer
    if(count!=0)
    {
    for (var i:Number=0;i<count;i++)
    {
    PopUpManager.centerPopUp(systemManager.popUpChildr en.getChildAt(i) as IFlexDisplayObject);
    }
    }

    }

    Hope it helps.. :)
    Unregistered Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139