Skip to content

Commit fa5d8fb

Browse files
committed
fix: android scale fix ...
1 parent c6f5c30 commit fa5d8fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/image.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,9 @@ export class Img extends ImageBase {
416416
if (!this.aspectRatio && imageInfo != null) {
417417
const ratio = imageInfo.getWidth() / imageInfo.getHeight();
418418

419-
draweeView.setAspectRatio(1/ratio);
419+
draweeView.setAspectRatio(ratio);
420420
} else if (this.aspectRatio) {
421-
draweeView.setAspectRatio(1/this.aspectRatio);
421+
draweeView.setAspectRatio(this.aspectRatio);
422422
} else {
423423
draweeView.setAspectRatio(0);
424424
}

0 commit comments

Comments
 (0)