From 7a6df89f92840b8c4c4200c8a9e82401af4ac669 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Tue, 26 Apr 2022 14:50:19 +0800 Subject: [PATCH] fix(mp): getSystemInfo safeAreaInsets.bottom question/133479 --- src/platforms/mp-weixin/helpers/system-info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/mp-weixin/helpers/system-info.js b/src/platforms/mp-weixin/helpers/system-info.js index 216e0e9d56..d50013a535 100644 --- a/src/platforms/mp-weixin/helpers/system-info.js +++ b/src/platforms/mp-weixin/helpers/system-info.js @@ -19,7 +19,7 @@ function addSafeAreaInsets (result) { top: safeArea.top, left: safeArea.left, right: result.windowWidth - safeArea.right, - bottom: result.windowHeight - safeArea.bottom + bottom: Math.abs(result.screenHeight - safeArea.bottom) } } } -- GitLab