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.
1 parent 8dcf63d commit c5b04d6Copy full SHA for c5b04d6
src/components/GridItem.vue
@@ -707,8 +707,8 @@
707
// width = colWidth * w - (margin * (w - 1))
708
// ...
709
// w = (width + margin) / (colWidth + margin)
710
- let w = Math.ceil((width + this.margin[0]) / (colWidth + this.margin[0]));
711
- let h = Math.ceil((height + this.margin[1]) / (this.rowHeight + this.margin[1]));
+ let w = Math.round((width + this.margin[0]) / (colWidth + this.margin[0]));
+ let h = Math.round((height + this.margin[1]) / (this.rowHeight + this.margin[1]));
712
713
// Capping
714
w = Math.max(Math.min(w, this.cols - this.innerX), 0);
0 commit comments