dimsemenov / Magnific-Popup

Light and responsive lightbox script with focus on performance.
http://dimsemenov.com/plugins/magnific-popup/
MIT License
11.39k stars 3.48k forks source link

Body height: 100vh causes page jump on popup #1069

Open localdog opened 6 years ago

localdog commented 6 years ago

I'm using an html template that has body {height: 100vh;} in the css. When an image is opened in Magnific the webpage in the background jumps to the top of the page. Upon closing the popup, the page is shifted down so the popup link is at the very bottom of the viewport. When "height: 100vh" css is removed, this behavior stops.

acemir commented 6 years ago

It may help to set fixedContentPos: false in the options.

AlighaThor commented 6 years ago

@acemir It works. Thanks.