desandro / masonry

:love_hotel: Cascading grid layout plugin
https://masonry.desandro.com
16.41k stars 2.11k forks source link

How can I limit the height of container? #1109

Closed baeharam closed 4 years ago

baeharam commented 5 years ago

I want to limit height of container to 90vh and compute height of grid item by percentage. However, it is not executed as I said. I explicitly wrote height as 90vh, but it ignores it. What I want is making grid to fit current viewport. How can I limit height and prevent from overflowing of images? Every images have height using percentage for 90vh.