This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Shapes on iOS fail to render if the bounds of the view is set prior to renderer creation #13284
Conversation
This file contains 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
rmarinho
approved these changes
Jan 5, 2021
jsuarezruiz
approved these changes
Jan 13, 2021
I just have a question, what is the reason for the DO-NOT-MERGE!!! label? |
@jsuarezruiz DNM got added once I noticed your PR here #13167 that solves the same issue differently. So, wanted to make sure we got the best of both PRs merged together and then merged into 5.0.0 |
This was referenced Jan 15, 2021
2 tasks
Adding this just for reference in case other people stumble on this issue: This PR also fixes a rendering crash on Android when a shape with a radial gradient would be added to a view outside of the current view hierarchy. Error Fix |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
a/collectionview
a/frame
a/radiobutton 🔘
a/shapes
a/shell 🐚
a/swipeview
blocker
Issue blocks next stable release. Prioritize fixing and reviewing this issue.
i/high
Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often
p/iOS 🍎
t/bug 🐛
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Change
The ShapeRenderer was setup to UpdateSize only when the width/height changed. So in cases where the width/height were already set the native shape would never draw. This issue was present on shell because on shell when you switch Flyout Items all of the renderers get removed and will get re-added when navigating back. Because the xplat size of the Ellipse was already set then on the second navigation the native size would never get set. This issue probably manifests itself in other cases as well. For example, if someone sets the bounds of a shape before attaching a renderer it won't draw
Issues Resolved
Platforms Affected
Testing Procedure
PR Checklist