Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -205,7 +205,7 @@ struct createImg { | @@ -205,7 +205,7 @@ struct createImg { | ||
| 205 | getPicHeight(picWidth: number, picHeight: number) { | 205 | getPicHeight(picWidth: number, picHeight: number) { |
| 206 | if (picWidth && picHeight) { | 206 | if (picWidth && picHeight) { |
| 207 | let sizeH = this.compWidth * picHeight / picWidth | 207 | let sizeH = this.compWidth * picHeight / picWidth |
| 208 | - return picWidth/picHeight === 1 ? 228:sizeH | 208 | + return picWidth/picHeight === 1 ? 228:Math.min(sizeH,305) |
| 209 | } else { | 209 | } else { |
| 210 | return 305; //普通图 | 210 | return 305; //普通图 |
| 211 | } | 211 | } |
-
Please register or login to post a comment