1 Reply Latest reply on Mar 12, 2008 8:53 AM by levancho

    center popUP

    trycold Level 1

      How do I center the popup created. I am using

      var pop2:addComPopUp = addComPopUp(PopUpManager.createPopUp(this, addComPopUp, true));

      and in addComPopUp I have

      But it centers on the control which is button . I want it centered in the application

        • 1. Re: center popUP
          levancho Level 3
          PopUpManager.createPopUp(this, addComPopUp, true)

          in abov code, createPopUp method's first parameter determines a reference point of popup placement, when you pass "this", "this" object becomes reference point to center the popup, if you need application to be reference point pass "Application.applicatiom as UIComponent" as parameter.