We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6f5c30 commit fa5d8fbCopy full SHA for fa5d8fb
src/image.android.ts
@@ -416,9 +416,9 @@ export class Img extends ImageBase {
416
if (!this.aspectRatio && imageInfo != null) {
417
const ratio = imageInfo.getWidth() / imageInfo.getHeight();
418
419
- draweeView.setAspectRatio(1/ratio);
+ draweeView.setAspectRatio(ratio);
420
} else if (this.aspectRatio) {
421
- draweeView.setAspectRatio(1/this.aspectRatio);
+ draweeView.setAspectRatio(this.aspectRatio);
422
} else {
423
draweeView.setAspectRatio(0);
424
}
0 commit comments