# Popup draggable

**URL:** <https://forum.inductiveautomation.com/t/popup-draggable/26777>\
**Category:** Ignition Early Access\
**Created:** [July 23, 2019, 6:32am UTC](https://forum.inductiveautomation.com/t/popup-draggable/26777 "2019-07-23T06:32:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgfgreaves](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@tgfgreaves](https://forum.inductiveautomation.com/u/tgfgreaves)\
**Post date:** [July 23, 2019, 6:32am UTC](https://forum.inductiveautomation.com/t/popup-draggable/26777/1 "2019-07-23T06:32:44Z")

</div>

Hi,

I have a script on a Mouse Event which opens a dynamic popup in perspective.  
I want the popup to stay in place, however i cannot seem to get that to work when creating the popup through a script.

‘’‘system.perspective.openPopup(“82h3d8”, “Page/Popups/Unit Performace”, position = {‘top’:0,‘left’:0,‘right’:0}, modal = True, draggable = False, resizable = False)’’’

Am i doing something wrong or is this not possible via script.

---

<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 23, 2019, 2:28pm UTC](https://forum.inductiveautomation.com/t/popup-draggable/26777/2 "2019-07-23T14:28:02Z")

</div>

Using the supplied code results in a popup which is not draggable (8.0.4 nightly version). What sort of device are you encountering this on?

There is an idiosyncrasy of popups/modals where if ANY portion of the popup is rendered outside of the viewable area, then the popup becomes draggable. Is it possible that part of the popup you are opening is rendered but not viewable, perhaps due to scroll bars?

---

<div class="post-metadata">

**Author:** ![tgfgreaves](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@tgfgreaves](https://forum.inductiveautomation.com/u/tgfgreaves)\
**Post date:** [July 24, 2019, 11:54pm UTC](https://forum.inductiveautomation.com/t/popup-draggable/26777/3 "2019-07-24T23:54:33Z")

</div>

This is occurring when using the perspective app on mobile.

---

<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 25, 2019, 2:20pm UTC](https://forum.inductiveautomation.com/t/popup-draggable/26777/4 "2019-07-25T14:20:54Z")

</div>

> [@cmallonee](#):
>
> There is an idiosyncrasy of popups/modals where if ANY portion of the popup is rendered outside of the viewable area, then the popup becomes draggable. Is it possible that part of the popup you are opening is rendered but not viewable, perhaps due to scroll bars?

And are these conditions occurring?

---

<div class="post-metadata">

**Author:** ![tgfgreaves](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@tgfgreaves](https://forum.inductiveautomation.com/u/tgfgreaves)\
**Post date:** [July 25, 2019, 10:34pm UTC](https://forum.inductiveautomation.com/t/popup-draggable/26777/5 "2019-07-25T22:34:56Z")

</div>

Yes, there was a portion of the popup appearing down the bottom of the screen.  
I added in ‘bottom’:0 which removes the rendering issue.
