summaryrefslogtreecommitdiff
path: root/org.fox.ttcomics
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-02-04 08:10:15 +0300
committerAndrew Dolgov <[email protected]>2019-02-04 08:10:15 +0300
commit531245b48693b192bfbf9c723e6495c11b4ca9da (patch)
treec8e3ba726714ced1b5ce669aa62fa5735312e588 /org.fox.ttcomics
parent2a50465517a7e57a93c5eee9371bc0bce0ddca3b (diff)
photo attacher: hack CENTER_CROP to behave more like fit to width
Diffstat (limited to 'org.fox.ttcomics')
-rwxr-xr-xorg.fox.ttcomics/src/main/java/com/github/chrisbanes/photoview/PhotoViewAttacher.java2
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,