Showing
2 changed files
with
4 additions
and
4 deletions
| @@ -136,9 +136,6 @@ export struct MultiPictureListPage { | @@ -136,9 +136,6 @@ export struct MultiPictureListPage { | ||
| 136 | .padding({top: `${this.topSafeHeight}px`,bottom:`${this.bottomSafeHeight}px`}) | 136 | .padding({top: `${this.topSafeHeight}px`,bottom:`${this.bottomSafeHeight}px`}) |
| 137 | .backgroundColor(Color.Black) | 137 | .backgroundColor(Color.Black) |
| 138 | .id('e_picture_container') | 138 | .id('e_picture_container') |
| 139 | - // 设置顶部绘制延伸到状态栏 | ||
| 140 | - // 设置底部绘制延伸到导航条 | ||
| 141 | - // .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]) | ||
| 142 | } | 139 | } |
| 143 | 140 | ||
| 144 | aboutToDisappear(): void { | 141 | aboutToDisappear(): void { |
| @@ -21,7 +21,8 @@ struct MultiPictureDetailPage { | @@ -21,7 +21,8 @@ struct MultiPictureDetailPage { | ||
| 21 | pageHideTime:number = 0; | 21 | pageHideTime:number = 0; |
| 22 | @Provide pageId: string = TrackConstants.PageName.Atlas_Detail | 22 | @Provide pageId: string = TrackConstants.PageName.Atlas_Detail |
| 23 | @Provide pageName: string = TrackConstants.PageName.Atlas_Detail | 23 | @Provide pageName: string = TrackConstants.PageName.Atlas_Detail |
| 24 | - | 24 | + @Provide bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0 |
| 25 | + @Provide topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0 | ||
| 25 | build() { | 26 | build() { |
| 26 | Row() { | 27 | Row() { |
| 27 | Column() { | 28 | Column() { |
| @@ -31,6 +32,8 @@ struct MultiPictureDetailPage { | @@ -31,6 +32,8 @@ struct MultiPictureDetailPage { | ||
| 31 | relType: this.relType | 32 | relType: this.relType |
| 32 | }) | 33 | }) |
| 33 | } | 34 | } |
| 35 | + .padding({top: `${this.topSafeHeight}px`,bottom:`${this.bottomSafeHeight}px`}) | ||
| 36 | + | ||
| 34 | } | 37 | } |
| 35 | .backgroundColor(Color.Black) | 38 | .backgroundColor(Color.Black) |
| 36 | } | 39 | } |
-
Please register or login to post a comment