# Perspective Popup Question

**URL:** <https://forum.inductiveautomation.com/t/perspective-popup-question/48955>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 19, 2021, 6:28pm UTC](https://forum.inductiveautomation.com/t/perspective-popup-question/48955 "2021-07-19T18:28:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![franklepkowski](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/franklepkowski/32/4808_2.png) [@franklepkowski](https://forum.inductiveautomation.com/u/franklepkowski)\
**Post date:** [July 19, 2021, 6:28pm UTC](https://forum.inductiveautomation.com/t/perspective-popup-question/48955/1 "2021-07-19T18:28:30Z")

</div>

If I open a popup window (A) that has a button that closes the current pop up and opens another (B)I am seeing the following behavior.

If I drag A somewhere other than center then click button to close A and open B, B opens but it is skewed to be centered wherever I moved A which causes it to be partially visible. How do I allow A to be dragged but B to always open centered on screen independent of position of A?

Thanks,

Frank

---

<div class="post-metadata">

**Author:** ![franklepkowski](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/franklepkowski/32/4808_2.png) [@franklepkowski](https://forum.inductiveautomation.com/u/franklepkowski)\
**Post date:** [July 19, 2021, 7:11pm UTC](https://forum.inductiveautomation.com/t/perspective-popup-question/48955/2 "2021-07-19T19:11:57Z")

</div>

I have found that if I specify a Top and Left position in the popup open config this corrects this behavior.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [July 19, 2021, 8:37pm UTC](https://forum.inductiveautomation.com/t/perspective-popup-question/48955/3 "2021-07-19T20:37:12Z")

</div>

I would need to see the configured Event or script to help clarify the behavior you were seeing. I would also need to know what version you’re using.

When I tried this out locally I did not see the behavior you described.

- Button\_0 opens PopupA.

- PopupA uses all default settings and contains one button which closes PopupA and then opens PopupB as two separate Popup Actions (not a single script execution).

1. If I click Button0 then I see PopupA.
2. I then drag PopupA in some direction and click the Button present in PopupA.

**Result:**  
PopupA is no longer present, and PopupB has opened in the center of the Page.

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [July 20, 2021, 4:53am UTC](https://forum.inductiveautomation.com/t/perspective-popup-question/48955/4 "2021-07-20T04:53:40Z")

</div>

Just assign an unique id each time it opens, I usually use a datetime to give this effect of “additional instance”.
