From 6db41211b0d73eebf456803fcf382197fba8e90f Mon Sep 17 00:00:00 2001 From: zhuzhengjun Date: Thu, 4 Jul 2024 14:20:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9onAreaChange=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E6=8E=A7=E4=BB=B6=E5=AE=BD=E9=AB=98=E4=B8=8D=E8=BD=AC?= =?UTF-8?q?=E5=8C=96=E6=88=90px?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhuzhengjun --- .../components/plugin/webview/in_app_webview/InAppWebView.ets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 cb969e51..af446380 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 { -- Gitee