We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9c5730 commit 3571a79Copy full SHA for 3571a79
1 file changed
packages/uni-core/src/helpers/dom.ts
@@ -25,7 +25,7 @@ export function getWindowOffset() {
25
const right = getWindowOffsetCssVar(style, '--window-right')
26
const topWindowHeight = getWindowOffsetCssVar(style, '--top-window-height')
27
return {
28
- top,
+ top: top + (topWindowHeight || 0),
29
bottom: bottom ? bottom + safeAreaInsets.bottom : 0,
30
left: left ? left + safeAreaInsets.left : 0,
31
right: right ? right + safeAreaInsets.right : 0,
0 commit comments