jsibbold / zoomage

A simple pinch-to-zoom ImageView library for Android
http://jsibbold.github.io/zoomage
Apache License 2.0
316 stars 77 forks source link

Issue when changing orientation in a ViewPager #95

Closed agonshehu closed 1 year ago

agonshehu commented 4 years ago

When you change orientation, the images change dimension and position (they become smaller and at the top corner). No idea why.

jsibbold commented 4 years ago

I'm unable to reproduce this issue. Mine resets to its default position and size based on ScaleType. What ScaleType are you using? Do you have any zoomage settings that are not the default settings enabled?

serdarakin commented 3 years ago

Problem (they become smaller and at the top corner) occurs when rotating the picture after zooming

KamilKeenan commented 1 year ago

I'm also having the same problem, any info about some update? Any workaround? Maybe resetting view somehow? Please help!

jsibbold commented 1 year ago

Try calling reset(), if that doesn't work try setting the scale type to what you started with.

KamilKeenan commented 1 year ago

Try calling reset(), if that doesn't work try setting the scale type to what you started with.

Oh, great. You mean, after rotating device right? (I need to check when user rotates it?) reset() view or activity?

jsibbold commented 1 year ago

Yeah after orientation change

KamilKeenan commented 1 year ago

it works! I am just setting scale type again :) thx so much!