-
Notifications
You must be signed in to change notification settings - Fork 563
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
[iOS][Image Rendering][ResourceResolvers] BackgroundImage is not filled properly when set second time #4667
Comments
@akaashdev When an UIImage is set to an UIImageView, it will notify the observer and the observer sets the constraints on the UIImageVew based on UIImage's size attributes. After the notification happens, the observer is removed, and no further notification will be generated. So if you used the observer for placeholder image, there will be no notification for the real image, so the constraints won't be proper likewise. If the use of the placeholder image is a requirement, this issue, #4650, #4665, and #4585 will be a feature request since your scenario is not supported. |
@jwoo-msft |
Hi @akaashdev |
Sure! This can be closed! |
Platform
What platform is your issue or question related to? (Delete other platforms).
Version of SDK
v1.2.11
Details
BackgroundImage seems not fill properly when set the second time on an imageView passed via ResourceResolver. We generally set a placeholder image first until the original image gets downloaded. So, when the original image tries to replace the placeholder, it doesn't follow proper filling.
Also, the icon images doesn't fill properly too.
Mac version of same card
card-details.zip
Attached the card payload and images in this zip.
The text was updated successfully, but these errors were encountered: