Skip to content

fix(h5): 修复 getSystemInfoSync API windowTop 计算错误的问题 (question/220141)#6004

Open
chouchouji wants to merge 1 commit into
uni-app-vue3-devfrom
fix-ask-issue-220141
Open

fix(h5): 修复 getSystemInfoSync API windowTop 计算错误的问题 (question/220141)#6004
chouchouji wants to merge 1 commit into
uni-app-vue3-devfrom
fix-ask-issue-220141

Conversation

@chouchouji

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes incorrect windowTop calculation in the H5 implementation of getSystemInfoSync/getWindowInfo by accounting for the top-window layout offset (--top-window-height) in addition to the existing window top offset (--window-top + safe area).

Changes:

  • Update getWindowInfo to compute windowTop as top + topWindowHeight from getWindowOffset().
  • Ensure windowHeight is reduced by the corrected windowTop, improving downstream size/layout calculations derived from system/window info.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

github-actions Bot commented May 29, 2026

Copy link
Copy Markdown

Size report

Path Size
packages/size-check/dist/size-check.es.js 52.92 KB (+0.04% 🔺)
packages/size-check/dist/style.css 2.83 KB (0%)
packages/uni-app/dist/uni-app.es.js 2.64 KB (0%)
packages/uni-h5-vue/dist/vue.runtime.esm.js 76.48 KB (0%)
packages/uni-mp-vue/dist/vue.runtime.esm.js 43.74 KB (0%)
packages/uni-mp-alipay/dist/uni.api.esm.js 15.51 KB (0%)
packages/uni-mp-alipay/dist/uni.mp.esm.js 8.19 KB (0%)
packages/uni-mp-baidu/dist/uni.api.esm.js 11.78 KB (0%)
packages/uni-mp-baidu/dist/uni.mp.esm.js 9.68 KB (0%)
packages/uni-mp-qq/dist/uni.api.esm.js 11.11 KB (0%)
packages/uni-mp-qq/dist/uni.mp.esm.js 7.6 KB (0%)
packages/uni-mp-toutiao/dist/uni.api.esm.js 11.06 KB (0%)
packages/uni-mp-toutiao/dist/uni.mp.esm.js 9.42 KB (0%)
packages/uni-mp-weixin/dist/uni.api.esm.js 12.14 KB (0%)
packages/uni-mp-weixin/dist/uni.mp.esm.js 8.16 KB (0%)
packages/uni-quickapp-webview/dist/uni.api.esm.js 11.06 KB (0%)
packages/uni-quickapp-webview/dist/uni.mp.esm.js 8.16 KB (0%)

@Allmeekadoo Allmeekadoo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To me

@Allmeekadoo Allmeekadoo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Soon hi

@Allmeekadoo Allmeekadoo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants