Skip to content

Commit d54b8d8

Browse files
authored
Use Number instead of parseInt to preserve precision.
1 parent e6badfd commit d54b8d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/GridItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@
382382
if (!margin || (margin[0] == this.margin[0] && margin[1] == this.margin[1])) {
383383
return;
384384
}
385-
this.margin = margin.map(m => parseInt(m));
385+
this.margin = margin.map(m => Number(m));
386386
this.createStyle();
387387
this.emitContainerResized();
388388
},

0 commit comments

Comments
 (0)