Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.

Popup window location on screen

schox

Hi all,

Some of my popup windows run off the bottom of the screen (even though they are smaller than the screen size). Is there a way to force them to be centred on the screen?

As a possibly related issue, if I move a popup that is partially off screen, then when I close it, the content behind it becomes unresponsive.

Cheers, Andrew


BenHayat

Andrew, when you're running your app, is the browser in 100% zoom level? If not Press CTRL+0 (zero) to see if that fixes the problem.


schox

Hi Ben,
No, it doesn't seem to be related to that. The zoom level is zero. I gave it a try anyway.
Thanks, Andrew


customaware

Alternatively..... have you tried using a Modeless Window.

I have found Modeless Windows position themselves on the screen more reliably than Pop Up windows.


BLOMASKY

The problem with Modeless Mark is that they "ARE" modeless. Usually when using a popup you do not want to let the user continue until they address the popup.

Humm, I wonder how hard it would be for the Brains @ Aware to have 4 optional parameters to a popup

XPos, YPos, Width, Height

I would even pay $2.50 for it!

Bruce


customaware

Good one for the "Ask Vlad Anything" Session


schox

Yes, I would prefer to be able to use modal windows in this case. Is there something I could do in Javascript perhaps to make the popup location behave?
Thanks, Andrew


customaware

Do you mean Modeless Andrew?

You can already position those with the Modeless settings...

Screen Shot 2018-03-06 at 10.01.13 am.png

Yes, indeed would be nice to have similar control over a Pop-Up Window.


schox

Yes, I mean modeless, although I will have a play with the modal windows in the meantime. Similar options that the modeless window has applied to popups would be great.
Cheers, Andrew


schox

Ignore my last post. I meant modal...
Andrew