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

Modal not centering correctly when moving from small to large breakpoint. #55

Open
swthate opened this issue Sep 24, 2015 · 0 comments
Open

Comments

@swthate
Copy link

swthate commented Sep 24, 2015

Howdy.

First of all, thanks for the great plugin. Now on to the issue...

On large screens the modal has a fixed width. At a certain breakpoint (called $large right now -- yeah, I'm going to be updating this project's naming conventions soon!) I switched its width to 100%, left and margin-left to 0, so that on smaller screens the modal screen snaps to the edges.

Everything works great so far.

Now, if I click open the modal window while my browser screen is small (so that the modal with 100% wide), and then stretch my browser screen to a large size, then the modal window has trouble centering itself. Rather than being nice and centered, it sits off to the right a bit.

Any ideas would be much appreciated.

Thanks!

P.S. Forgot to mention a gist with my markup and modal styles: https://gist.github.com/swthate/b94c5c15715d04606692

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