提交 92f1c1ef 编写于 作者: 雪洛's avatar 雪洛

fix(v3): 修复webview组件在非沉浸式状态栏下高度不正确的Bug

上级 50f96f63
......@@ -17,7 +17,11 @@ const insertHTMLWebView = ({
}
const parentTitleNView = parentWebview.getTitleNView()
if (parentTitleNView) {
styles.top = 44 + plus.navigator.getStatusbarHeight()
if (plus.navigator.isImmersedStatusbar()) {
styles.top = 44 + plus.navigator.getStatusbarHeight()
} else {
styles.top = 44
}
styles.bottom = 0
}
webview = plus.webview.create('', htmlId, styles)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册