Closed camicase82 closed 2 years ago
@camicase82 — I'm pretty sure the issue here is that you're wrapping that .row
div around the items inside of the container. If that div is wrapped around the items (or perhaps even just sitting there), it's likely calculating row/column sizes using that instead of the items themselves, which is the desired functionality.
I did try taking a look at the example, but it didn't seem to really match the issue. If this isn't helpful, please follow up and I can try to further assist you. Thanks!
Thanks a lot for answering, and just got it working, I forgot to fork it to leave the original issue visible but was related to what you are pointing out, basically the gallery selector needs to be at the same level as the other container of elements, and in the case of bootstrap, it should be a row and items cols
Glad I could help!
Hi there, I'm trying to modify an existing isotope/bootstrap implementation to change the layout, originally, the gallery fill the whole screen as seen here:
https://constructionandrepair.com/#gallery
But when I change the layout separating the title and the gallery on different rows and the filter options and images on a different one, each one inside a col, isotope is only setting 2 cols when it should be 3 as I'm using col-md-4
I tried reducing the col size for the items to 3, and it shows 3 cols (which either makes much sense), and still not taking the whole width of the container
Here is a simple example of the isolated issue on a codePen https://codepen.io/camicase82-the-styleful/pen/ZExgRZg
The general structure is as follows, please keep in mind that the final code is generated inside a CMS (MODX)
My current init code is as follows
The thing that got me scratching my head, is that it actually organizes the images as it should before isotope loads, I mean it shows 3 cols for a sec, then goes to 2