desandro / masonry

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

Elements placed in 2 columns only some of the time and placed in 1 column other times #1130

Closed Aunger3 closed 4 years ago

Aunger3 commented 4 years ago

Test case: http://codepen.io/desandro/pen/osFxj I have a drop down menu that lets the user pick a category and I want it to always place the selected elements into 2 columns. Sometimes elements are placed into 2 columns sometimes they are placed in only 1 column. Any help or guidance would be appreciated thank you.

Here is what I want to happen that only happens some of the time

what I want

Here is what I don't want to happen that happens some of the time

what I get