From e52fabd7c19865e28f67e1f9b4960e60c101c7d7 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Mon, 28 Feb 2022 15:13:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=5F=5Fhidpi=5F=5F=20fillText=E3=80=81str?= =?UTF-8?q?okeText=20maxWidth?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/helpers/hidpi.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/helpers/hidpi.js b/src/core/helpers/hidpi.js index 09fecb39c..d6a638c25 100644 --- a/src/core/helpers/hidpi.js +++ b/src/core/helpers/hidpi.js @@ -106,6 +106,7 @@ if (pixelRatio !== 1) { args[1] *= pixelRatio args[2] *= pixelRatio args[3] *= pixelRatio + typeof args[3] !== 'number' && (args.length = 3) // Safari 重新设置部分属性会导致其他值恢复默认,需获取原始值 var font = this.__font__ || this.font @@ -132,6 +133,7 @@ if (pixelRatio !== 1) { args[1] *= pixelRatio // x args[2] *= pixelRatio // y args[3] *= pixelRatio // y + typeof args[3] !== 'number' && (args.length = 3) // Safari 重新设置部分属性会导致其他值恢复默认,需获取原始值 var font = this.__font__ || this.font -- GitLab