Showing
1 changed file
with
2 additions
and
0 deletions
| @@ -281,6 +281,8 @@ struct createImg { | @@ -281,6 +281,8 @@ struct createImg { | ||
| 281 | .backgroundColor(0xf5f5f5) | 281 | .backgroundColor(0xf5f5f5) |
| 282 | .aspectRatio(1) | 282 | .aspectRatio(1) |
| 283 | .borderRadius(this.caclImageRadius(index)) | 283 | .borderRadius(this.caclImageRadius(index)) |
| 284 | + .width('100%') | ||
| 285 | + .autoResize(true) | ||
| 284 | if (this.getPicType(item.weight, item.height) !== 3) { | 286 | if (this.getPicType(item.weight, item.height) !== 3) { |
| 285 | Flex({ direction: FlexDirection.Row }) { | 287 | Flex({ direction: FlexDirection.Row }) { |
| 286 | Image($r('app.media.icon_long_pic')) | 288 | Image($r('app.media.icon_long_pic')) |
-
Please register or login to post a comment