We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9c5730 commit 7209b41Copy full SHA for 7209b41
1 file changed
packages/uni-h5/src/service/api/device/getWindowInfo.ts
@@ -31,7 +31,8 @@ export const getWindowInfo = defineSyncApi<typeof uni.getWindowInfo>(
31
height: windowHeight - safeAreaInsets.top - safeAreaInsets.bottom,
32
}
33
34
- const { top: windowTop, bottom: windowBottom } = getWindowOffset()
+ const { top, bottom: windowBottom, topWindowHeight } = getWindowOffset()
35
+ const windowTop = top + topWindowHeight
36
37
windowHeight -= windowTop
38
windowHeight -= windowBottom
0 commit comments