basicLightbox icon indicating copy to clipboard operation
basicLightbox copied to clipboard

Height 100vh is too tall on iOS Safari

Open ArianeNubee opened this issue 5 years ago • 2 comments

On iOS Safari, if the two navigation bars are shown, 100vh is actually taller than the screen area available. So if you make a scrollable popup, it won't be possible to scroll down far enough to see all of the content.

In my site, just setting .basicLightbox's height to 100% instead seems to fix it.

ArianeNubee avatar Jul 02 '19 15:07 ArianeNubee

There was a reason why I've used 100vh, but I can't remember why :-/ 100% seems to work fine. I will do some further tests to see if there're problems. Thanks for the tip!

electerious avatar Jul 03 '19 19:07 electerious

I ran into the same issue, you could just do:

.basicLightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  ...
}

without specifying width and height

milanidavide avatar Aug 07 '20 11:08 milanidavide