jamonholmgren / ProMotion

ProMotion is a RubyMotion gem that makes iPhone development less like Objective-C and more like Ruby.
MIT License
1.26k stars 147 forks source link

Call setNeedsLayout after remote image has been downloaded #779

Closed andrewhavens closed 8 years ago

andrewhavens commented 8 years ago

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 commented 8 years ago

:+1:

jamonholmgren commented 8 years ago

Good catch @andrewhavens !