Page 1 of 1

Popup Not Centering on First Attempt

Posted: Thu Jun 25, 2015 1:57 pm
by Marco Spera

Hi,

I have a popup that is launched when I swipe right on an object. The "position to" is set to window. When I launch the popup the very first time upon visiting the page the popup is off to the lower right cover of the screen. Every other time after that I launch the popup, it is properly centered in the screen. See screenshot below.

How can I correct this to center to the screen every time, even the first time.

Thanks

Image

Image


Popup Not Centering on First Attempt

Posted: Thu Jun 25, 2015 3:36 pm
by Evgene Karachevtsev

Hello Marco,

Could you please clarify do you use any CSS rules for centering it?


Popup Not Centering on First Attempt

Posted: Thu Jun 25, 2015 3:46 pm
by Marco Spera

I am not using any CSS on this Popup.

I thought the "postion to" = "window" was supossed to center it.


Popup Not Centering on First Attempt

Posted: Thu Jun 25, 2015 4:01 pm
by Evgene Karachevtsev

Marco,

Please try to set its position forcibly via CSS: https://devcenter.appery.io/documenta...


Popup Not Centering on First Attempt

Posted: Thu Jun 25, 2015 4:58 pm
by Marco Spera

I tried but it does not seem to help.

Just to ensure I am using the correct code, I used the following:

Appery("ViewAllPrevious").css('margin', 'auto');
Appery("ViewAllPrevious").css('display', 'block');


Popup Not Centering on First Attempt

Posted: Fri Jun 26, 2015 2:47 am
by Yurii Orishchuk

Hi Marco,

Please give us your app public link and describe steps to reproduce this problem in your app.(open popup).

Thanks.


Popup Not Centering on First Attempt

Posted: Fri Jun 26, 2015 2:59 am
by Marco Spera

Hey Yurii,

My app is already shared with appery support titled "17weeks". You can login with the username "test" and password "test" and then click the "view all picks" button in the bottom right corner of the nav bar. When on that screen you can swipe right on any of the team names to open the popup.

Thanks


Popup Not Centering on First Attempt

Posted: Wed Jul 01, 2015 3:12 am
by Yurii Orishchuk

Hi Marko,

Problem you have is in dynamic content that will change popup(size) after you show it.

So you need change order to:

1 Populate popup with dynamic data.

2 Open popup.

Currently you open popup and then update content.

Regards.


Popup Not Centering on First Attempt

Posted: Mon Jul 06, 2015 1:00 pm
by Marco Spera

Hi Yurii,

You were absolutely right.

This worked perfectly to resolve my issue!!

Thanks so much!