From f32e7584defdfc554b24ae30ad5a5067177c4031 Mon Sep 17 00:00:00 2001 From: laoguanyao <806103474@qq.com> Date: Tue, 24 Sep 2024 17:20:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8E=9F=E7=94=9Fweb?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=9C=A8=E5=BA=94=E7=94=A8=E5=AE=BD=E5=BA=A6?= =?UTF-8?q?=E6=94=B9=E5=8F=98=E5=90=8E=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: laoguanyao <806103474@qq.com> --- .../src/main/ets/plugin/platform/PlatformViewsController.ets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewsController.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewsController.ets index 9b29731810..8afcd87043 100644 --- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewsController.ets +++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewsController.ets @@ -190,6 +190,10 @@ export default class PlatformViewsController implements PlatformViewsAccessibili oldPhysicalHeight = this.viewPhysicalInfo.get(viewId) as number; //高度变化小于3,不做刷新处理,减少闪烁 if (physicalHeight - oldPhysicalHeight < this.dValue) { + + this.setParams(params!, "width", physicalWidth); + this.setParams(params!, "height", oldPhysicalHeight); + onComplete.run(new PlatformViewBufferSize(physicalWidth, oldPhysicalHeight)); return; } -- Gitee