You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Can you check which of the 2 changes it the real fix?
Both are the real fix.
Added another test for setting dimensions and disposing.
Made me encounter a race condition between dispose and render.
If you look at the test you can see I had to wrap the disposing in an event to wait for after rendering.
I think this should be standard behavior handled internally by canvas, returning a promise once disposing has completed.
Thoughts?
But as you often suggest, let's limit the scope of this PR.
This on my end it's ready.
I'll explain.
Using cssText solves the problem of trying to set read only props (and is better for perf I think)
Only an interactive canvas changes lowerCanvasEl style so that's why I wrapped the style restoration as well
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.
closes #7664