# How to anchor a popup to a position?

**URL:** <https://forum.inductiveautomation.com/t/how-to-anchor-a-popup-to-a-position/107028>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 4, 2025, 2:50pm UTC](https://forum.inductiveautomation.com/t/how-to-anchor-a-popup-to-a-position/107028 "2025-06-04T14:50:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amelko](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@amelko](https://forum.inductiveautomation.com/u/amelko)\
**Post date:** [June 4, 2025, 2:50pm UTC](https://forum.inductiveautomation.com/t/how-to-anchor-a-popup-to-a-position/107028/1 "2025-06-04T14:50:46Z")

</div>

Hi,

I have a button on a tablet screen that pops up a graph when clicked on. The graph corresponds to some table values, and I want this graph to be covering the table when it appears. I can do this, however whenever I scroll / move the screen somewhere else, the graph follows.

Is there anyway that I can anchor the graph to stay in a fixed position? This is the script im using, it is not working:  
system.perspective.openPopup(  
id="pressureGraphPopup",  
view="Furn/G/Views/tablet\_PressureTempGraph",  
title="Pressure & Temp Graph",  
params={},  
modal=False,  
draggable=True,  
resizable=True,  
showCloseIcon=True,  
position={"top": 170, "left": 65},  
positioned=True  
)

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [June 4, 2025, 3:05pm UTC](https://forum.inductiveautomation.com/t/how-to-anchor-a-popup-to-a-position/107028/2 "2025-06-04T15:05:55Z")

</div>

Instead of using a popup, use an embedded view (flex) and leverage the display prop to show/hide components. The embedded view would have both the table and popup view inside it.

You could also change the embedded view path to the popup's view on click, it really depends on your functionality, but a popup is not the solution for this since you need it anchored.

---

<div class="post-metadata">

**Author:** ![amelko](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@amelko](https://forum.inductiveautomation.com/u/amelko)\
**Post date:** [June 4, 2025, 3:07pm UTC](https://forum.inductiveautomation.com/t/how-to-anchor-a-popup-to-a-position/107028/3 "2025-06-04T15:07:27Z")

</div>

Okay thanks! I will use an embedded view instead and let you know how it goes.
