shershen08 / vue-masonry

💠 Vue.js directive for masonry blocks layouting ✅
MIT License
674 stars 81 forks source link

No (re)order happens until an element selected by column-width appears. #75

Closed nicroto closed 6 years ago

nicroto commented 6 years ago

The issue with that is - if I have different size items and for a while only the other type of items get pulled with AJAX and added, they get squished together over one another, until an item selected by column-width shows up. Only then suddenly the container gets sized up.

nicroto commented 6 years ago

Can't find a workaround... Would it be possible to set the size of the minimal item programatically to the masonry instance? (instead of it trying to guess it from the dom element)

nicroto commented 6 years ago

@shershen08 I've submitted a pull request. The api of masonry-layout allows setting both selector and a number for columnWidth and gutter. I've added those and updated the docs. (linting is a check and I tried to use the exact code-style).

I hope this is helpful. Cheers.

shershen08 commented 6 years ago

fixed in0.11.6 thanks for collaboration @nicroto