We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d43e24f + 442cd14 commit 0ccd36dCopy full SHA for 0ccd36d
src/components/GridItem.vue
@@ -657,8 +657,8 @@
657
// width = colWidth * w - (margin * (w - 1))
658
// ...
659
// w = (width + margin) / (colWidth + margin)
660
- let w = Math.round((width + this.margin[0]) / (colWidth + this.margin[0]));
661
- let h = Math.round((height + this.margin[1]) / (this.rowHeight + this.margin[1]));
+ let w = Math.ceil((width + this.margin[0]) / (colWidth + this.margin[0]));
+ let h = Math.ceil((height + this.margin[1]) / (this.rowHeight + this.margin[1]));
662
663
// Capping
664
w = Math.max(Math.min(w, this.cols - this.innerX), 0);
0 commit comments