NetTalk Central

Author Topic: Center vertical popups form/browse?  (Read 2980 times)

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 419
    • View Profile
    • Email
Center vertical popups form/browse?
« 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

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 469
    • View Profile
    • Email
Re: Center vertical popups form/browse?
« Reply #1 on: September 19, 2018, 10:23:08 PM »
Hallo Niels!

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

Robert

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 419
    • View Profile
    • Email
Re: Center vertical popups form/browse?
« Reply #2 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11171
    • View Profile
Re: Center vertical popups form/browse?
« Reply #3 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

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 419
    • View Profile
    • Email
Re: Center vertical popups form/browse?
« Reply #4 on: September 21, 2018, 03:08:15 AM »
Hi Bruce

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

Regards Niels