# Relative Popup Perspective Via Script

**URL:** <https://forum.inductiveautomation.com/t/relative-popup-perspective-via-script/32245>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [February 13, 2020, 9:02pm UTC](https://forum.inductiveautomation.com/t/relative-popup-perspective-via-script/32245 "2020-02-13T21:02:12Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [March 13, 2021, 2:44pm UTC](https://forum.inductiveautomation.com/t/relative-popup-perspective-via-script/32245/4 "2021-03-13T14:44:21Z")

</div>

It will be awesome if a **contextual menu** could be added to perspective in a near future.

> [@\[IGN-1770\]Perspective best solution to convert vision Jmenu](http://forum.inductiveautomation.com/t/perspective-best-solution-to-convert-vision-jmenu/35948/3):
>
> Cool, I Hope this feature has an High priority in the backlog slightly_smiling_face

In the meantime, in order to try to achieve this feature, it will be usefull to be able to open popup with a relative position, close to the component clicked, with the ability to calculate the height of the popup according to the number of "menu" items.

We can use popup view action to open a popup with a relative Position, but in that case the height and other dimension of the popup view are constant...

+1, that's another use case to try to mimic a contextual popup in perspective

**Vision example to achieve in perspective...**

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/7/771b0cfe2c6e2871c17699c022233ba1158d151a.png)

---

_[View the full topic](https://forum.inductiveautomation.com/t/relative-popup-perspective-via-script/32245)._
