diff --git a/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/InAppWebView.ets b/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/InAppWebView.ets index cb969e519e5d55a1bfb35c7f85ad7926a61a6c06..af446380975e3cc3689b61779e8994f3702a47a4 100644 --- a/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/InAppWebView.ets +++ b/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/InAppWebView.ets @@ -966,8 +966,8 @@ export default class InAppWebView implements InAppWebViewInterface { } onAreaChange = (oldValue: Area, newValue: Area) => { - this.viewWidth = vp2px(newValue.width as number) - this.viewHeight = vp2px(newValue.height as number) + this.viewWidth = newValue.width as number + this.viewHeight = newValue.height as number } toWebHeaders(headers: Map): Array {