Page 1 of 2

Popup does not open in center of screen

Posted: Fri Aug 12, 2016 11:10 am
by Deon

Hi

How do I get the popup to open in the center of a web browser everytime?
It seems to do it once and then when opening it again it jumps to a different location.

Thank you.


Popup does not open in center of screen

Posted: Sat Aug 13, 2016 12:10 pm
by Serhii Kulibaba

Hello Deon,

Popup component opens in the page center every time. Please check your custom CSS, it could broke popup's layout


Popup does not open in center of screen

Posted: Mon Aug 15, 2016 12:00 pm
by Deon

Hi Sergiy

I do not apply any css to the popup. In addition the popup is a different size each time as well.
I have specified it to be 40% of the screen width but that does not happen.

If it was css why would it work first time and not all the other times it is opened?


Popup does not open in center of screen

Posted: Tue Aug 16, 2016 5:32 pm
by Serhii Kulibaba

I might be related to it's content, or any JS code, which you use there.

Could you create a simple application, which has only one buttot, which opens a popup on the click event? Please send us a public link to that app


Popup does not open in center of screen

Posted: Thu Aug 25, 2016 12:51 pm
by Deon

Hi Sergiy

Content is simple text from a database field. Nothing special

public link Woofza web - I have shared with support.

You would need to register as a petsitter. The popups are on the quiz page.
PS. Width also changes. I can accept that the height changes because of the amount of content but why does the width change every time the popup is opened.


Popup does not open in center of screen

Posted: Wed Aug 31, 2016 1:25 pm
by Deon

Any news?


Popup does not open in center of screen

Posted: Thu Sep 01, 2016 7:47 am
by Serhii Kulibaba

Please add a custom CSS below to center your popup:
pre.ui-popup-container [name="messagepop"]{
margin:auto;
}/pre


Popup does not open in center of screen

Posted: Fri Sep 02, 2016 12:09 am
by Deon

I found the problem.

My popup width is in %. This is causing the problem. If I change the width to px it is fine.For some reason % cant be calculated?


Popup does not open in center of screen

Posted: Mon Sep 05, 2016 4:35 pm
by Serhii Kulibaba

It has to be calculated.
Glad to hear things are sorted out now!


Popup does not open in center of screen

Posted: Tue Sep 06, 2016 2:06 am
by Deon

Not sorted out cause I still cant use % on Popup. Now popup is not responsive design.