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..04a4d777d065b4ad166a9beca9440535d35b75a8 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 {