Skip to main content
Inspiring
December 2, 2020
Answered

Position a PopUp

  • December 2, 2020
  • 1 reply
  • 207 views

Is it possible to position a PopUp from WITHIN the PopUp?

 

I have a desktop app that has to deal with a user resizing the app on the screen. Most buttons and graphical elements I can move and resize to fit on the screen appropriately using an Event.RESIZE listener for the component. But my app has a ton of popUps to let a user know if there is an error, to handle account information, etc. When you create a center-positioned PopUp, it does not reposition itself as the app is resized. So when a popup hears the Event.RESIZE event, I wonder if there is a way for a popup to move itself instead of doing it from outside the PopUp using the popupmanager?

 

Any ideas if a PopUp can be moved from WITHIN the PopUp?

    This topic has been closed for replies.
    Correct answer William Spence

    Interesting Simple Solution that I found.  You can move it from within the PopUp by simply stating:

     

    this.move(x,y);

     

    Problem Solved!

    1 reply

    William SpenceAuthorCorrect answer
    Inspiring
    December 2, 2020

    Interesting Simple Solution that I found.  You can move it from within the PopUp by simply stating:

     

    this.move(x,y);

     

    Problem Solved!