From 00b71f8969142f2eba55b01fb10136a13b64b316 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Tue, 9 Aug 2022 18:06:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20h5=20=E7=AB=AF=20--?= =?UTF-8?q?window-top=20=E8=AE=A1=E7=AE=97=E9=94=99=E8=AF=AF=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uni-h5/src/helpers/cssVar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uni-h5/src/helpers/cssVar.ts b/packages/uni-h5/src/helpers/cssVar.ts index 743a2ad0a..748bb42ba 100644 --- a/packages/uni-h5/src/helpers/cssVar.ts +++ b/packages/uni-h5/src/helpers/cssVar.ts @@ -20,7 +20,7 @@ export function updateCurPageCssVar(pageMeta: UniApp.PageRouteMeta) { tabBar.shown && (windowBottomValue = parseInt(tabBar.height!)) } updatePageCssVar({ - '--window-top': normalizeWindowBottom(windowTopValue), + '--window-top': normalizeWindowTop(windowTopValue), '--window-bottom': normalizeWindowBottom(windowBottomValue), }) } -- GitLab