desandro / masonry

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

Grid reorders in a single column after updating the number of buttons in the container. #1195

Open dovbaeb opened 4 months ago

dovbaeb commented 4 months ago

image

I have a list of buttons that I can sort by tags, so only a few appear after I selected a tag. When I do this, the remaining buttons get rearranged in a single column, on the left. But if the very first button of the grid is one of the remaining buttons after I selected a tag, the grid keeps its 5 columns layout.

The css is not at fault here's the rest of the code

image

I also use lozad.

Here are the libraries I use :

image

Thank you very much