Repository navigation
Tell package authors to paint from frameFor, not inside a sizeObserver delivery - #6349
Merged
Merged
Conversation
…r delivery `module-authoring.md`'s "Scheduling paints" now says a `sizeObserver` callback should schedule a paint from `frameFor` rather than draw, and why: when a widget's drawing settles inside a size delivery, Leaf presents the page in that delivery. That moves boxes the browser has just measured, and the browser reports a ResizeObserver loop, which `page check` counts as a fault. The maintainer decided on #6147 to fix this in the package contract, not in core. Page readiness stays as it is, and each widget keeps its own deferral, as `lf-chart`, `lf-diagram` and `lf-shot` already do. Only the reference changes, with no code change. The tests that read this file (`test_interact_layer.py`'s role-table check) pass. Closes #6147
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
module-authoring.md's "Scheduling paints" now says asizeObservercallback should schedule a paint fromframeForrather than draw, and why: when a widget's drawing settles inside a size delivery, Leaf presents the page in that delivery. That moves boxes the browser has just measured, and the browser reports a ResizeObserver loop, whichpage checkcounts as a fault.The maintainer decided on #6147 to fix this in the package contract, not in core. Page readiness stays as it is, and each widget keeps its own deferral, as
lf-chart,lf-diagramandlf-shotalready do. Only the reference changes, with no code change. The tests that read this file (test_interact_layer.py's role-table check) pass.Closes #6147