In several cases I have 1 extra column when padding is used
I solved it with, but it is just workaround for me
diff --git a/node_modules/vue-masonry-wall/src/vue-masonry-wall.vue b/node_modules/vue-masonry-wall/src/vue-masonry-wall.vue
index 5400ef7..4a97dbd 100644
--- a/node_modules/vue-masonry-wall/src/vue-masonry-wall.vue
+++ b/node_modules/vue-masonry-wall/src/vue-masonry-wall.vue
@@ -185,7 +185,7 @@
* @private internal component use
*/
_columnSize() {
- const length = Math.round(this.$refs.wall.scrollWidth / this._options.width)
+ const length = Math.round(this.$refs.wall.scrollWidth / (this._options.width + this._options.padding.default * 2))
if (length < 1) return 1
return length
},
In several cases I have 1 extra column when padding is used
I solved it with, but it is just workaround for me