vue-masonry-css
vue-masonry-css copied to clipboard
Recalculate grid if props changed
Problem Grid doesn't recalculate columns when props changed.
Now there is a condition that checks previous and current width. And it stops further function running. I guess the condition was added to avoid redundant calculation when "resize" event is fired. Well, let's validate the width only on the "resize" event.
very helpful!