From 122f59fc295688f0600454a58f5bd5a0a6e6f878 Mon Sep 17 00:00:00 2001 From: cj-and <1747143535@qq.com> Date: Fri, 16 Aug 2024 12:00:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=E4=BF=AE=E6=94=B9=E5=BA=95?= =?UTF-8?q?=E9=83=A8=E8=A7=84=E9=81=BF=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cj-and <1747143535@qq.com> --- .../flutter_embedding/flutter/src/main/ets/view/FlutterView.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/FlutterView.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/FlutterView.ets index 0902117d1a..7fe816cf6c 100644 --- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/FlutterView.ets +++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/FlutterView.ets @@ -281,7 +281,7 @@ export class FlutterView { // 根据是否全屏显示,设置标题栏高度(若全屏,则及时规避) if (this.checkFullScreen && FlutterManager.getInstance().getFullScreenListener().useFullScreen()) { // 全屏显示 this.viewportMetrics.physicalViewPaddingTop = this.getAvoidAreaTopLength(); - this.viewportMetrics.physicalViewPaddingBottom = 0; + this.viewportMetrics.physicalViewPaddingBottom = this.getAvoidAreaBotLength(); Log.i(TAG, "--- fullscreen mode is on ---"); } else { // 非全屏显示(保持规避效果) // 顶部状态栏和底部导航栏规避为0,无平滑过渡效果 -- Gitee