From 6535437ac438d69586976bad07ad2c31e3af72bd Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Thu, 21 Jul 2022 16:25:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(web-view):=20=E4=BF=AE=E5=A4=8D=20ios=20?= =?UTF-8?q?=E5=88=98=E6=B5=B7=E5=B1=8F=E6=89=8B=E6=9C=BA=E5=BA=95=E9=83=A8?= =?UTF-8?q?=E7=95=99=E7=99=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/platforms/app-plus/view/components/web-view/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/platforms/app-plus/view/components/web-view/index.vue b/src/platforms/app-plus/view/components/web-view/index.vue index b4510c8b1..02b57cb1d 100644 --- a/src/platforms/app-plus/view/components/web-view/index.vue +++ b/src/platforms/app-plus/view/components/web-view/index.vue @@ -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) { -- GitLab