diff options
Diffstat (limited to 'org.fox.ttcomics')
-rwxr-xr-x | org.fox.ttcomics/src/main/java/com/github/chrisbanes/photoview/PhotoViewAttacher.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.fox.ttcomics/src/main/java/com/github/chrisbanes/photoview/PhotoViewAttacher.java b/org.fox.ttcomics/src/main/java/com/github/chrisbanes/photoview/PhotoViewAttacher.java index faf3491..a29b4ba 100755 --- a/org.fox.ttcomics/src/main/java/com/github/chrisbanes/photoview/PhotoViewAttacher.java +++ b/org.fox.ttcomics/src/main/java/com/github/chrisbanes/photoview/PhotoViewAttacher.java @@ -609,7 +609,7 @@ public class PhotoViewAttacher implements View.OnTouchListener, (viewHeight - drawableHeight) / 2F); } else if (mScaleType == ScaleType.CENTER_CROP) { - float scale = Math.max(widthScale, heightScale); + float scale = widthScale; //Math.max(widthScale, heightScale); mBaseMatrix.postScale(scale, scale); /*mBaseMatrix.postTranslate((viewWidth - drawableWidth * scale) / 2F, |