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

    center popUP

    trycold Level 1
      Hi,

      How do I center the popup created. I am using

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

      and in addComPopUp I have
      PopUpManager.centerPopUp(this);

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

      Thanks
        • 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.