kombai / freewall

Freewall is a cross-browser and responsive jQuery plugin to help you create grid, image and masonry layouts for desktop, mobile, and tablet...
MIT License
1.85k stars 375 forks source link

Square pictures get oversized #243

Open albanc26 opened 7 years ago

albanc26 commented 7 years ago

Hello,

First many many thanks for this great piece of script. It is tremendous !

I am using freewall.js for displaying picture galleries. But whenever an image is perfectly square, thus is no larger than higher, freewall seems to fail resizing it and creates a huge cell. See examples here : https://www.velorizons.com/photo-video-velo-vtc/asie/indonesie/album-photo-1100-echappee-balinaise-a-velo.html and here : https://www.velorizons.com/photo-video-velo-vtc/amerique-du-sud/cuba/album-photo-1137-fidele.html

Also being a programmer myself, I have tried to find and fix the issue, but without success so far. I have also tried experimenting with the fixSize setting, but with no success again (fixSize=1 breaks the whole layout, fixSize = 0 makes the square pictures disapear, fixSize=null is the default behavior which creates huge cells for square pictures).