Troubleshooting the Desandro Masonry
-
I’m using the Desandro masonry JS package for a masonry of blog posts on the homepage of a site. I’m seeing gaps where there shouldn’t be gaps in my masonry. It’s a straightforward three-column grid of identically-sized post thumbnails, but sometimes the masonry leaves a gap of two posts, filling in the next post in the rightmost spot instead of the leftmost spot and leaving the rest unfilled. Inspecting reveals that every third post thumbnail is marked ‘last’ as it should be, representing that it is the last on the line before it wraps to the next line, but the items just aren’t populating where they’re supposed to.
Right now I have 12 posts, and the layout is looking like this, with the Xs representing posts where they should be and the Os representing gaps:
XXX
XXX
OOX
XXX
OOX
XWhen I add a 13th post, the formatting shifts to the following:
XXX
OOX
XXX
OOX
XXX
OOX
XI just updated the library to the most recent version (v4.2.2) but am still having this issue. I’ve been staring at it for a while and I can’t figure out the pattern. Does anyone have any insight for troubleshooting this masonry library or see a pattern here? Or have ideas of other things that might be messing with a perfectly good masonry plugin?
Thanks so much for any insight or help!
The page I need help with: [log in to see the link]
- The topic ‘Troubleshooting the Desandro Masonry’ is closed to new replies.