4 Replies Latest reply on Aug 16, 2007 12:11 PM by jfillman

    PopUpManager.centerPopUp question 

    Handycam Level 1
      I've got an app with pop up windows, using PopUpManager. I'd like these windows to be centered over the entire app window.

      I've put into the init() handler of the title window (the popup) PopUpManager.centerPopUp(this), and it centers over the parent that called it, a Canvas that's only half the width of the app window.

      I need to center it to either the Canvas's parent (a view stack) or the app itself.

      However, my attempts of PopUpManager.centerPopUp(myViewStack), PopUpManager.centerPopUp(Application.application.myViewStack), and even PopUpManager.centerPopUp(Application.application) failed with "no such object".

      How do you target centerpopup()?