vue-masonry-css icon indicating copy to clipboard operation
vue-masonry-css copied to clipboard

Recalculate grid if props changed

Open andriytereschuk opened this issue 6 years ago • 1 comments

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.

andriytereschuk avatar Nov 22 '19 09:11 andriytereschuk

very helpful!

Sleaf avatar Mar 08 '21 03:03 Sleaf