MopTym/vue-waterfall

Why do we have to specify width and height?

Opened this issue · 3 comments

It is not to criticize just an open question.
jQuery plugins like masonry takes the CSS dimensions to calculate the dimensions of the items.
Is your choice performance related?

Thanks.

same question, i struggle to input width and height when the they are depending on lots of different variable and thats hardly to be calculated.

i just want a effect of pictures list, but we can not know the width/height ratio of a picture. so ,how to set the required prop 'height'(different picture have different width/height ratio)

try my vue component vue2-conponent,you don't need to set height