miromannino / Justified-Gallery

Javascript library to help creating high quality justified galleries of images. Used by thousands of websites as well as the photography community 500px.
http://miromannino.github.io/Justified-Gallery/
MIT License
1.68k stars 299 forks source link

Fringe case - Fixed shape thumbnails #331

Closed jefftucker1952 closed 3 years ago

jefftucker1952 commented 4 years ago

If your thumbnails are all exactly the same size, there are some small last-row centering problems. It's a fringe case, because if your thumbnails are all the same size, there's really no reason to be using JG at all - a simple inline-block thumbnail layout is a lot easier. I just toss it out here in case someone wants to tinker with it. I've had no luck with it.

The demo: (link removed)

The problem shows up only when the last row has fewer thumbnails. Rows with the same number of images always line up perfectly. And the last row problem occurs only at some viewport widths. When it appears, it looks like this:

jgcenter01

Low priority, to be sure.

jefftucker1952 commented 3 years ago

This is obviously never going to be addressed, so I'll just close it.