-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue after changing the orientation #64
Comments
I think your code should change to: |
I've fixed the issue by keeping 2 sets of mMetrics and mResources, each of them initialized depending on current orientation (Portrait or Landscape) |
Maybe the fix is to not cache mmetrics and always grab the metrics from imageview that was passed in, if available. Can you submit that? |
Also, you may want to check out ion: |
I have an issue with UrlImageViewHelper after changing the orientation: the image are resized with an unexpected size.
I believe it is due to the fact you cache mMetrics with the DisplayMetrics associated to the orientation of the first call. It then lead to issues when using mMetrics.widthPixels since it may not be valid anymore after a change of orientation.
1.0.4
The text was updated successfully, but these errors were encountered: