Skip to content

Commit 4c1c527

Browse files
sandulucadohooo
andauthored
fix(bug): Loss of precision during arithmetic conversion (#767)
Co-authored-by: Caspian Zhao <[email protected]>
1 parent 85f24e7 commit 4c1c527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layouts/stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ function getCommonStyles(opts: {
300300
}
301301

302302
return {
303-
zIndex,
303+
zIndex: Math.round(zIndex),
304304
opacity,
305305
};
306306
}

0 commit comments

Comments
 (0)