Showing
1 changed file
with
3 additions
and
1 deletions
| @@ -326,7 +326,9 @@ struct createImg { | @@ -326,7 +326,9 @@ struct createImg { | ||
| 326 | .backgroundColor(0xf5f5f5) | 326 | .backgroundColor(0xf5f5f5) |
| 327 | // .aspectRatio(this.onePicW > this.onePicH ? 343 / 198 : 228 / 305) | 327 | // .aspectRatio(this.onePicW > this.onePicH ? 343 / 198 : 228 / 305) |
| 328 | .width('100%') | 328 | .width('100%') |
| 329 | - .aspectRatio(this.onePicW / this.onePicH < 1.5 ? 343 / 198 : 343 / 305) | 329 | + .constraintSize({ |
| 330 | + maxHeight: this.onePicW > this.onePicH ? 198 : 305 | ||
| 331 | + }) | ||
| 330 | .autoResize(true) | 332 | .autoResize(true) |
| 331 | .borderRadius(this.caclImageRadius(index)) | 333 | .borderRadius(this.caclImageRadius(index)) |
| 332 | .borderStyle(BorderStyle.Solid) | 334 | .borderStyle(BorderStyle.Solid) |
-
Please register or login to post a comment