Skip to content
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

Call setNeedsLayout after remote image has been downloaded #779

Conversation

andrewhavens
Copy link
Collaborator

This PR adds a missing line of code. When setting a remote image, using SDWebImage, it's important to call setNeedsLayout after updating the image so that the imageView and label frames can be adjusted. Otherwise you will see some strange results, like images shifting when you click on them or resizing when they scroll into view.

@squidpunch
Copy link
Contributor

👍

@squidpunch squidpunch merged commit 7c5b0cd into jamonholmgren:master May 5, 2016
@jamonholmgren
Copy link
Owner

Good catch @andrewhavens !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants