Resolution issue affecting coordinates of object


I am currently facing an issue on a Scada ignition project that is being displayed in both PC and HMI screens of different resolution.

I have a toggle button that is displaying a pop up in the middle of a view when it is pressed. The current issue I’m facing is the fact that the different resolution between the two screens is causing the pop up to be displayed in different coordinates of the view.

My question is is there a way, possibly a script, to bind on that button so the button detects the screen resolution of each screen so it can locate the pop ups coordinates accordingly so the pop up displays in the middle of the screen despites resolution? or is there a different way to implement this?

Thank you in advance.

I think you should be able to accomplish this by specifying Relative coordinates instead of Exact

1 Like

Thank you for the reply. This feature is not available on version 8.0.4 though and upgrading it is not the case unfortunately. Hence I was thinking more towards scripting perhaps? Thanks

I don’t think it’s possible to detect the device resolution via Perspective. But in the case you could, what if the browser is not full screen every time or 2 different browsers are used? I think you’d have the same issue with the popup position being different for those cases.

There was discussion about trying to make resolution available to scripts and expressions. It may have been introduced fairly recently. Part of the issue is that browsers deliberately make it difficult to get this information, in order to not disturb assistive technology (like zoom features for those with limited vision) and to minimize the privacy-relevant information available to “fingerprinting” techniques.

Modern web design eschews pixel-based sizing and positioning in favor of relative and/or resolution-independent values. It isn’t a Perspective thing.


That would be useful for sure. But would that help solve OP? I think we’d need to know the browsers size, position, coordinates in the cases it wasn’t in full screen (resized and not the device resolution).

No idea. I don’t do pixel positioning. (:

1 Like

Surely you set some flex basis values to pixels?