Force to open popup only inside the browser area

Hello
When using related open popup with relative position(relative to click position), if the click position in near to the browser edge the popup is shown out of the browser border as shown is image below.
Is there any way to force it open browser?
Writing script to detect this situation is hard because there is no way to know width and height of the client browser in perspective.
Unlike the desktop visualization like vision the perspective popup can’t move outside of the browser area so it is nice to have this feature already implement in perspective.

Hi Nader.

We have something in the works already to help prevent popups from going beyond the dimensions of the visual viewport. This should help solve your problem.

2 Likes

Hi Yousef
That’s great news.
Is it going to release in 8.1.2?

Something else that may help in the meanwhile, is if you open the popup via scripting instead of an action, you can provide vw and vh sizing to help keep things in window. Unfortunately can’t do that with the built in “popup action” though, just numbers there

But for this I need to know my target device resolution so if height of my popup plus the mouse y position is higher than height of display I put new y position

So, what you’re trying to create is a popup/modal similar to what we use for the alarm tables (in most recent release). Where the popup/modal positions itself intelligently based upon its dimensions and the available space? Something like this?

Sure. Exactly
Popup beingsmart and calculate the position by perspective is the best.
Only activate this option when some area of popup is out side of the browser space.