From 1994a93de8655feeadb6055441603ed68d5dad46 Mon Sep 17 00:00:00 2001 From: wwyang <137208408@qq.com> Date: Wed, 6 Nov 2024 17:23:28 +0800 Subject: [PATCH] =?UTF-8?q?web=E8=AE=BE=E7=BD=AEkeyboardAvoidMode=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E4=B8=BARESIZE=5FVISUAL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wwyang <137208408@qq.com> --- .../main/ets/io.flutter.plugins/webview_flutter/OhosWebView.ets | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/OhosWebView.ets b/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/OhosWebView.ets index 834b83e8b..299064999 100644 --- a/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/OhosWebView.ets +++ b/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/OhosWebView.ets @@ -45,6 +45,7 @@ export struct OhosWebView { controller: this.controller, renderMode: RenderMode.SYNC_RENDER }) + .keyboardAvoidMode(WebKeyboardAvoidMode.RESIZE_VISUAL) .backgroundColor(this.webView.getWebSettings().getBackgroundColor()) .onDownloadStart(this.webView.onDownloadStart) .onPageBegin(this.webView.onPageBegin) -- Gitee