Bounds not adjusted when rotating device
See original GitHub issueDear Alex, rotating the device will not re-adjust a photo to fit the screen. Instead you have to zoom out to make it fit.
image.getController().getSettings().setFillViewport(true); image.getController().getSettings().setOverzoomFactor(10f); image.getController().getSettings().setDoubleTapZoom(2f); image.getController().getSettings().setMaxZoom(20f); image.getController().getSettings().setFitMethod(Fit.INSIDE);
Manifest
android:configChanges="orientation|keyboardHidden|screenSize|locale"
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
iOS bounds change after rotating to landscape, then back to ...
When the system sends you willRotateToInterfaceOrientation:duration: , it has not updated your view's frame to its new size.
Read more >Resize UICollectionViewCells On Rotation In Swift
This happens because the incorrect bounds are used to compute new cell sizes after rotation. To properly support rotation, the new bounds after ......
Read more >View bounds and touchable area incorrect after a rotate or a ...
The bounds are not correctly transformed. The touch area is not correctly transformed and press behaviour is broken where the real view and...
Read more >Adjust rotation and canvas size in Photoshop - Adobe Support
This document outlines the different methods you can use to adjust your image's cropping, rotation, and canvas size.
Read more >Limit Box | ReCap - Autodesk Knowledge Network
To rotate the Limit Box, move the cursor so that an edge is highlighted and hold down the Ctrl key. Next, click and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed in v2.5.2
Not sure what behaviour changes you are referring to, there were no changes related to state reset.
I reproduced your issue myself, the easiest fix for me was:
I will think about fixing it within the library in next versions, will need to consider implications first.