From 1619d3fc2f65e74b51b2f14c2ee603767d3007ac Mon Sep 17 00:00:00 2001 From: huangxiaoyao <976125628@qq.com> Date: Sun, 29 Sep 2024 11:30:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=B9=E8=B5=B7=E9=94=AE?= =?UTF-8?q?=E7=9B=98=E6=97=B6=E9=A1=B5=E9=9D=A2=E5=8F=98=E5=BD=A2=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: huangxiaoyao <976125628@qq.com> --- .../ets/components/plugin/webview/in_app_webview/OhosWebView.ets | 1 + 1 file changed, 1 insertion(+) diff --git a/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/OhosWebView.ets b/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/OhosWebView.ets index 752a115e..3f504213 100644 --- a/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/OhosWebView.ets +++ b/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/OhosWebView.ets @@ -84,6 +84,7 @@ export struct OhosWebView { src: this.inAppWebView?.getLoadUrl(), controller: this.controller }) + .keyboardAvoidMode(WebKeyboardAvoidMode.RESIZE_VISUAL) .onControllerAttached(this.inAppWebView!.onControllerAttached) .onAlert(this.inAppWebView!.inAppWebViewClient?.onAlert) .onBeforeUnload(this.inAppWebView!.inAppWebViewClient?.onBeforeUnload) -- Gitee