NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Niels Larsen on September 19, 2018, 10:14:21 PM

Title: Center vertical popups form/browse?
Post by: Niels Larsen on September 19, 2018, 10:14:21 PM
Hi Bruce

I'll try again.
I would like to center my popups vertically on the "screen".
It might bring some questions on the reference: screen / site, etc. What's normal practice?
Do you have a suggestion?

Regards Niels
Title: Re: Center vertical popups form/browse?
Post by: Robert Iliuta on September 19, 2018, 10:23:08 PM
Hallo Niels!

Did you try  "Window Top Offset" with 50% ?
It should work.

Robert
Title: Re: Center vertical popups form/browse?
Post by: Niels Larsen on September 20, 2018, 09:28:50 PM
Hi Robert

I have tried that. I think the templates handle this as a pure pixel thing.

Regards Niels
Title: Re: Center vertical popups form/browse?
Post by: Bruce on September 20, 2018, 10:10:27 PM
>> I would like to center my popups vertically on the "screen".

I don't think you can.
It's been a while since I last looked at this - so my memory may be faulty, but as I recall popup dialogs have a fixed width, but variable height. Since the height is not known, it's not possible to "center" it, at least not as it opens.

It might be possible to centre it after it opens using javascript, but as far as I know that's not built-in.

cheers
Bruce
Title: Re: Center vertical popups form/browse?
Post by: Niels Larsen on September 21, 2018, 03:08:15 AM
Hi Bruce

Thanks. I'll see if I can find a solution somewhere else.

Regards Niels