diff --git a/imageviewer/src/main/java/com/stfalcon/imageviewer/viewer/view/TransitionImageAnimator.kt b/imageviewer/src/main/java/com/stfalcon/imageviewer/viewer/view/TransitionImageAnimator.kt index d5e66c98..afc39b5b 100644 --- a/imageviewer/src/main/java/com/stfalcon/imageviewer/viewer/view/TransitionImageAnimator.kt +++ b/imageviewer/src/main/java/com/stfalcon/imageviewer/viewer/view/TransitionImageAnimator.kt @@ -91,6 +91,7 @@ internal class TransitionImageAnimator( internalImageContainer.makeViewMatchParent() internalImage.makeViewMatchParent() + internalImage.scaleType = ImageView.ScaleType.FIT_CENTER internalRoot.applyMargin( containerPadding[0], @@ -125,7 +126,7 @@ internal class TransitionImageAnimator( internalImageContainer.applyMargin(left, top, right, bottom) } } - + internalImage.scaleType = it.scaleType resetRootTranslation() } }