Skip to content

Commit

Permalink
fix: android scale fix ...
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Oct 7, 2020
1 parent c6f5c30 commit fa5d8fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/image.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,9 @@ export class Img extends ImageBase {
if (!this.aspectRatio && imageInfo != null) {
const ratio = imageInfo.getWidth() / imageInfo.getHeight();

draweeView.setAspectRatio(1/ratio);
draweeView.setAspectRatio(ratio);
} else if (this.aspectRatio) {
draweeView.setAspectRatio(1/this.aspectRatio);
draweeView.setAspectRatio(this.aspectRatio);
} else {
draweeView.setAspectRatio(0);
}
Expand Down

0 comments on commit fa5d8fb

Please sign in to comment.