From 6fd7a76da423e9ae345291a7b18d6791a89dd465 Mon Sep 17 00:00:00 2001 From: "Xavier.Meng" Date: Tue, 13 Dec 2022 22:17:44 +0800 Subject: [PATCH] =?UTF-8?q?BI-118754=20fix(getMinimumFontSize):=20?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=9C=80=E5=B0=8F=E5=AD=97=E5=8F=B7=E6=97=A0?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/platform/web/function.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/platform/web/function.js b/src/core/platform/web/function.js index 152933882..f05ef923d 100644 --- a/src/core/platform/web/function.js +++ b/src/core/platform/web/function.js @@ -140,8 +140,9 @@ BI._.extend(BI, { }, getMinimumFontSize: function () { + // not work for firefox const el = document.createElement('div'); - el.style.fontSize = "0px"; + el.style.fontSize = "1px"; document.body.appendChild(el); const size = getComputedStyle(el).fontSize; el.remove();