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 752a115e98b16721f1b35fc5b8949a65c646f742..3f5042133970561a0f7135953988bc6657adf34e 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)