From fe916fa3bdc91b150b2fcb36f1a5f3e1a2fa04b0 Mon Sep 17 00:00:00 2001 From: liujuan Date: Tue, 9 Jan 2024 11:53:29 +0000 Subject: [PATCH] update feature/thirdselect/src/main/ets/default/view/ThirdSelectPhotoBrowserBase.ets. Signed-off-by: liujuan --- .../main/ets/default/view/ThirdSelectPhotoBrowserBase.ets | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/feature/thirdselect/src/main/ets/default/view/ThirdSelectPhotoBrowserBase.ets b/feature/thirdselect/src/main/ets/default/view/ThirdSelectPhotoBrowserBase.ets index 6def6438..6076d563 100644 --- a/feature/thirdselect/src/main/ets/default/view/ThirdSelectPhotoBrowserBase.ets +++ b/feature/thirdselect/src/main/ets/default/view/ThirdSelectPhotoBrowserBase.ets @@ -40,7 +40,7 @@ import { ThirdSelectPhotoBrowserActionBar } from '@ohos/common/CommonComponents'; -import { FormConstants, IS_HORIZONTAL } from '../utils/ThirdSelectConstants'; +import { FormConstants, IS_HORIZONTAL, LEFT_BLANK } from '../utils/ThirdSelectConstants'; import { ThirdSelectedPanel } from './ThirdSelectedPanel'; import { MouseTurnPageOperation } from '@ohos/browser/BrowserComponents'; import { Matrix4x4 } from '@ohos/common/src/main/ets/default/utils/Matrix4x4' @@ -84,6 +84,8 @@ export struct ThirdSelectPhotoBrowserBase { mPosition: number = 0; @State title: string = ''; @Prop @Watch('onPageChanged') pageStatus: boolean = false; + @StorageLink(LEFT_BLANK) leftBlank: number[] + = [0, ScreenManager.getInstance().getStatusBarHeight(), 0, ScreenManager.getInstance().getNaviBarHeight()]; @StorageLink(IS_HORIZONTAL) isHorizontal: boolean = ScreenManager.getInstance().isHorizontal(); maxSelectCount: number = 0; @StorageLink('geometryOpacity') geometryOpacity: number = 1; @@ -382,7 +384,7 @@ export struct ThirdSelectPhotoBrowserBase { this.buildCheckBox() this.buildPanel() } - .padding({ bottom: $r('app.float.buttonWithoutText') }) + .padding({ bottom: this.leftBlank[3] }) } pageTransition() {