Jelajahi Sumber

don't use integer values

Gildas 7 tahun lalu
induk
melakukan
1eba6d0276
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      lib/single-file/doc-helper.js

+ 2 - 2
lib/single-file/doc-helper.js

@@ -269,9 +269,9 @@ this.docHelper = this.docHelper || (() => {
 		if (width >= 0 && height >= 0 && paddingLeft >= 0 && paddingRight >= 0 && paddingTop >= 0 && paddingBottom >= 0 && borderLeft >= 0 && borderRight >= 0 && borderTop >= 0 && borderBottom >= 0) {
 			return {
 				width: (paddingLeft || paddingRight || borderLeft || borderRight) && (width - paddingLeft - paddingRight - borderLeft - borderRight) + "px",
-				pxWidth: Math.round(width - paddingLeft - paddingRight - borderLeft - borderRight),
+				pxWidth: width - paddingLeft - paddingRight - borderLeft - borderRight,
 				height: (paddingTop || paddingBottom || borderTop || borderBottom) && (height - paddingTop - paddingBottom - borderTop - borderBottom) + "px",
-				pxHeight: Math.round(height - paddingTop - paddingBottom - borderTop - borderBottom),
+				pxHeight: height - paddingTop - paddingBottom - borderTop - borderBottom,
 			};
 		}
 	}