Showing
1 changed file
with
4 additions
and
4 deletions
| @@ -296,13 +296,13 @@ export struct ENewspaperPageComponent { | @@ -296,13 +296,13 @@ export struct ENewspaperPageComponent { | ||
| 296 | Row() { | 296 | Row() { |
| 297 | Image($r('app.media.newspaper_shadow')) | 297 | Image($r('app.media.newspaper_shadow')) |
| 298 | .height($r('app.float.vp_12')) | 298 | .height($r('app.float.vp_12')) |
| 299 | - .width('100%') | 299 | + .width(px2vp(this.picWidth)) |
| 300 | .objectFit(ImageFit.Contain) | 300 | .objectFit(ImageFit.Contain) |
| 301 | 301 | ||
| 302 | - }.margin({ top: -1,left: 10, right: 10 }).alignRules({ | 302 | + }.margin({ top: -1 }).alignRules({ |
| 303 | top: { anchor: "e_newspaper_content", align: VerticalAlign.Bottom }, | 303 | top: { anchor: "e_newspaper_content", align: VerticalAlign.Bottom }, |
| 304 | - // left: { anchor: 'e_newspaper_content', align: HorizontalAlign.Start }, | ||
| 305 | - // right: { anchor: 'e_newspaper_content', align: HorizontalAlign.End } | 304 | + left: { anchor: 'e_newspaper_content', align: HorizontalAlign.Start }, |
| 305 | + right: { anchor: 'e_newspaper_content', align: HorizontalAlign.End } | ||
| 306 | }) | 306 | }) |
| 307 | .id('e_newspaper_shadow') | 307 | .id('e_newspaper_shadow') |
| 308 | 308 |
-
Please register or login to post a comment