From 8398fae0317d4985c4c82bc0188438c788629ece Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 21 Oct 2022 13:32:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?KERNEL-13158:=20=E5=9B=9E=E9=80=80?= 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 cad439772..fc89511f5 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") { - return (pix - (border || 0)) / BI.pixRatio; + if (BI.pixUnit === "px" && BI.pixRatio === 1) { + return (pix - (border || 0)) / BI.pixRatio + BI.pixUnit; } var length = pix / BI.pixRatio + BI.pixUnit; if (border > 0) { From 89ca5b379331e68af8356a6ef603764ec493bf87 Mon Sep 17 00:00:00 2001 From: data Date: Fri, 21 Oct 2022 13:54:30 +0800 Subject: [PATCH 2/2] auto upgrade version to 2.0.20221021135419 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b78c14202..3e7accb86 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fineui", - "version": "2.0.20221021133442", + "version": "2.0.20221021135419", "description": "fineui", "main": "dist/fineui_without_conflict.min.js", "types": "dist/lib/index.d.ts",