metafizzy / isotope

:revolving_hearts: Filter & sort magical layouts
https://isotope.metafizzy.co
11.07k stars 1.41k forks source link

Container Height with a Stamp and columnWidth #1237

Open itayganor opened 7 years ago

itayganor commented 7 years ago

Hi,

When you set a columnWidth for the masonry option of isotope, and use stamp, the layout method does not calculate the height as it should with a stamp.

In other words: if you have a stamp, and you've set a columnWidth, so; When there are no items in the grid, and you try to relayout everything, the container will set its height to 0 without considering the stamp.

Demo: http://codepen.io/anon/pen/gmXPyE In the demo, click on remove all and then on layout and see the problem.

Is it a bug? becuase it hurts the performance and user experience in my website.

thanks!

desandro commented 7 years ago

Thank you for reporting this bug with test case! Yes, this indeed a bug. I'll evaluate fixing it for a future release

itayganor commented 7 years ago

Great, Thanks! Please let me know when there's a fix for that bug :)

N6REJ commented 7 years ago

following