From 6507dd2d34f95103cecf82d3cdf5b6adb0f2aed7 Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 21 Oct 2022 13:08:17 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-13158:=20=E4=BC=98=E5=8C=96useContext?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/constant/var.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/constant/var.js b/src/core/constant/var.js index fc89511f5..cad439772 100644 --- a/src/core/constant/var.js +++ b/src/core/constant/var.js @@ -19,8 +19,8 @@ BI._.extend(BI, { if (!BI.isNumber(pix)) { return pix; } - if (BI.pixUnit === "px" && BI.pixRatio === 1) { - return (pix - (border || 0)) / BI.pixRatio + BI.pixUnit; + if (BI.pixUnit === "px") { + return (pix - (border || 0)) / BI.pixRatio; } var length = pix / BI.pixRatio + BI.pixUnit; if (border > 0) {