Showing
1 changed file
with
3 additions
and
3 deletions
| @@ -141,8 +141,8 @@ export struct ENewspaperPageComponent { | @@ -141,8 +141,8 @@ export struct ENewspaperPageComponent { | ||
| 141 | // bottomSafeHeight 底导高度 topSafeHeight 顶导高度 44 顶部高度 60 底部高度 | 141 | // bottomSafeHeight 底导高度 topSafeHeight 顶导高度 44 顶部高度 60 底部高度 |
| 142 | // newspaper_shadow 49 高度 e_newspaper_content 59 margin top | 142 | // newspaper_shadow 49 高度 e_newspaper_content 59 margin top |
| 143 | let height = | 143 | let height = |
| 144 | - screenHeight - this.bottomSafeHeight - this.topSafeHeight - vp2px(44) - vp2px(60) - vp2px(49) - vp2px(59) | ||
| 145 | - this.picHeight = height | 144 | + // screenHeight - this.bottomSafeHeight - this.topSafeHeight - vp2px(44) - vp2px(60) - vp2px(49) - vp2px(59) |
| 145 | + this.picHeight = (this.picWidth * 506)/355 | ||
| 146 | 146 | ||
| 147 | let ratio = this.ratio == '100%' ? 1 : 0.5 | 147 | let ratio = this.ratio == '100%' ? 1 : 0.5 |
| 148 | this.picWidth = this.picWidth * ratio | 148 | this.picWidth = this.picWidth * ratio |
| @@ -279,7 +279,7 @@ export struct ENewspaperPageComponent { | @@ -279,7 +279,7 @@ export struct ENewspaperPageComponent { | ||
| 279 | .indicator(false) | 279 | .indicator(false) |
| 280 | .loop(false) | 280 | .loop(false) |
| 281 | .displayCount(1) | 281 | .displayCount(1) |
| 282 | - .margin({ top: 59, left: 10, right: 10 }) | 282 | + .margin({ top: 69, left: 10, right: 10 }) |
| 283 | .id('e_newspaper_content') | 283 | .id('e_newspaper_content') |
| 284 | .alignRules({ | 284 | .alignRules({ |
| 285 | top: { anchor: "e_newspaper_top", align: VerticalAlign.Bottom }, | 285 | top: { anchor: "e_newspaper_top", align: VerticalAlign.Bottom }, |
-
Please register or login to post a comment