Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue centering on Firefox 57 #29

Open
7starsone opened this issue Nov 27, 2017 · 1 comment
Open

Issue centering on Firefox 57 #29

7starsone opened this issue Nov 27, 2017 · 1 comment

Comments

@7starsone
Copy link

Hello,
there's an issue on Firefox 57

I don't know what is the cause, if the issue is in Firefox or not.

You choose to open the popup inline on page load (so, in a hidden div)

var popup = new $.Popup();
popup.open('#mydiv');

when you load the page the 1st time, it doesn't center the popup.
If you load the page a 2nd time, instead, it's working as usual.

Can you test it, please?
Thanks

@7starsone
Copy link
Author

For now, I had to do this:

@media (min-width:1025px) { 
@-moz-document url-prefix() {
.popup_cont {
	position: fixed;
	z-index: 99999;
	top: 0 !important;
	left:50% !important;
	margin-left: -400px !important;
  }
 }
}

my popup is 800px in width, hence that margin-left
So, in this case it stays on center on desktop + Firefox, then it also resizes together with the window.

Anyway, I'd be grateful if you tested this issue and let me know. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant