Showing
2 changed files
with
5 additions
and
9 deletions
| @@ -311,6 +311,7 @@ export struct ENewspaperPageComponent { | @@ -311,6 +311,7 @@ export struct ENewspaperPageComponent { | ||
| 311 | .width('100%') | 311 | .width('100%') |
| 312 | .height('100%') | 312 | .height('100%') |
| 313 | .backgroundColor($r('app.color.color_80000000')) | 313 | .backgroundColor($r('app.color.color_80000000')) |
| 314 | + .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]) | ||
| 314 | .id('e_newspaper_container') | 315 | .id('e_newspaper_container') |
| 315 | 316 | ||
| 316 | if (this.isOpenListDialog) { | 317 | if (this.isOpenListDialog) { |
| @@ -137,7 +137,7 @@ export struct ENewspaperListDialog { | @@ -137,7 +137,7 @@ export struct ENewspaperListDialog { | ||
| 137 | .fontSize($r('app.float.font_size_14')) | 137 | .fontSize($r('app.float.font_size_14')) |
| 138 | .fontColor($r('app.color.color_222222')) | 138 | .fontColor($r('app.color.color_222222')) |
| 139 | .fontWeight(600) | 139 | .fontWeight(600) |
| 140 | - .maxLines(2) | 140 | + // .maxLines(2) |
| 141 | .margin({ | 141 | .margin({ |
| 142 | bottom: 8 | 142 | bottom: 8 |
| 143 | }) | 143 | }) |
| @@ -151,7 +151,7 @@ export struct ENewspaperListDialog { | @@ -151,7 +151,7 @@ export struct ENewspaperListDialog { | ||
| 151 | .margin({ | 151 | .margin({ |
| 152 | bottom: 8 | 152 | bottom: 8 |
| 153 | }) | 153 | }) |
| 154 | - .maxLines(2) | 154 | + // .maxLines(2) |
| 155 | } | 155 | } |
| 156 | 156 | ||
| 157 | if (positionItem.downTitle) { | 157 | if (positionItem.downTitle) { |
| @@ -162,7 +162,7 @@ export struct ENewspaperListDialog { | @@ -162,7 +162,7 @@ export struct ENewspaperListDialog { | ||
| 162 | .margin({ | 162 | .margin({ |
| 163 | bottom: 8 | 163 | bottom: 8 |
| 164 | }) | 164 | }) |
| 165 | - .maxLines(2) | 165 | + // .maxLines(2) |
| 166 | } | 166 | } |
| 167 | if (positionItem.newsTxt) { | 167 | if (positionItem.newsTxt) { |
| 168 | Text(positionItem.newsTxt) | 168 | Text(positionItem.newsTxt) |
| @@ -251,16 +251,11 @@ export struct ENewspaperListDialog { | @@ -251,16 +251,11 @@ export struct ENewspaperListDialog { | ||
| 251 | this.currentPageNum = `${firstIndex < 9 ? '0' + (firstIndex + 1) : firstIndex + 1}` | 251 | this.currentPageNum = `${firstIndex < 9 ? '0' + (firstIndex + 1) : firstIndex + 1}` |
| 252 | // } | 252 | // } |
| 253 | }) | 253 | }) |
| 254 | - .onScroll((scrollOffset: number, scrollState: ScrollState) => { | ||
| 255 | - // console.info(`onScroll scrollState = ScrollState` + scrollState + `, scrollOffset = ` + scrollOffset) | ||
| 256 | - // if (this.scrollOffset == 0) { | ||
| 257 | - // this.scrollOffset = 0 | ||
| 258 | - // } | ||
| 259 | - }) | ||
| 260 | } | 254 | } |
| 261 | .margin({ top: 124 }) | 255 | .margin({ top: 124 }) |
| 262 | .width('100%') | 256 | .width('100%') |
| 263 | .backgroundColor(Color.White) | 257 | .backgroundColor(Color.White) |
| 258 | + .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.BOTTOM]) | ||
| 264 | .onClick(() => { | 259 | .onClick(() => { |
| 265 | 260 | ||
| 266 | }) | 261 | }) |
-
Please register or login to post a comment