Skip to content

Commit

Permalink
fix(web-view): 修复 ios 刘海屏手机底部留白问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyuWang committed Jul 21, 2022
1 parent e1680fb commit 6535437
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/platforms/app-plus/view/components/web-view/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ const insertHTMLWebView = ({
// fixed by hxy web-view 组件所在的 webview 不注入 uni-app 框架
const styles = {
'uni-app': 'none',
isUniH5: true
isUniH5: true,
// ios 默认绘制到安全区外
contentAdjust: false
}
const parentTitleNView = parentWebview.getTitleNView()
if (parentTitleNView) {
Expand Down

0 comments on commit 6535437

Please sign in to comment.