FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

iOS: setting borderRadius on Image with http/s source fails to render by justindujardin · Pull Request #4832 · NativeScript/NativeScript · GitHub

iOS: setting borderRadius on Image with http/s source fails to render - #4832

Closed
justindujardin wants to merge 1 commit into
NativeScript:masterfrom
justindujardin:image-border-radius-fail
Closed

justindujardin wants to merge 1 commit into
NativeScript:masterfrom
justindujardin:image-border-radius-fail

Conversation

Copy link
Copy Markdown
Contributor

When loading an image from a remote resource, all the background properties are applied before the imageSource. When assigning borderRadius to an image, then later setting its imageSource would cause the image to be in a bad render state and completely disappear from the UI.

This patch clones the backgroundInternal property after async assignment of the imageSource, which causes the render state to be corrected.

Fixes #4804

I'm not sure this is the very best fix and am open to suggestions.

ghost added the ♥ community PR label Sep 12, 2017

ns-bot commented Sep 12, 2017

Copy link
Copy Markdown

Please sign CLA at http://www.nativescript.org/cla

ns-bot added the cla: no label Sep 12, 2017

Copy link
Copy Markdown
Contributor Author

@ns-bot done

ns-bot commented Sep 12, 2017

Copy link
Copy Markdown

CLA signature found, happy contributing!

ns-bot added cla: yes and removed cla: no labels Sep 12, 2017
When loading an image from a remote resource, all the background properties are applied before the imageSource. When assigning borderRadius to an image, then later setting its imageSource would cause the image to be in a bad render state and completely disappear from the UI.

I had to make the clone method public on Background.

This patch clones the backgroundInternal property after async assignment of the imageSource.
justindujardin force-pushed the image-border-radius-fail branch from 13711cd to 91f4538 Compare September 12, 2017 16:06
NativeScript deleted a comment from ns-bot Oct 18, 2017
NativeScript deleted a comment from ns-bot Oct 18, 2017
NativeScript deleted a comment from ns-bot Oct 18, 2017
NativeScript deleted a comment from ns-bot Oct 18, 2017
NativeScript deleted a comment from ns-bot Oct 18, 2017
NativeScript deleted a comment from ns-bot Oct 18, 2017
NativeScript deleted a comment from ns-bot Oct 18, 2017
NativeScript deleted a comment from ns-bot Oct 18, 2017
NativeScript deleted a comment from ns-bot Oct 18, 2017
NativeScript deleted a comment from ns-bot Oct 18, 2017
NativeScript deleted a comment from ns-bot Oct 18, 2017

Copy link
Copy Markdown
Contributor

@justindujardin I can't reproduce this issue with tns-core-modules@3.2 but I've saw another issue - borderRadius was not applied on Image element. This PR #4963 fix the new issue so I'm closing your PR in flavor of the other.

hshristov closed this Oct 18, 2017
ghost removed the ♥ community PR label Oct 18, 2017
justindujardin deleted the image-border-radius-fail branch October 18, 2017 15:45

lock Bot commented Aug 26, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock Bot locked and limited conversation to collaborators Aug 26, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Image with https src and borderRadius doesn't render on iOS

4 participants


Back | FazBrowse Home | New Git URL