Repository navigation
Fit a live sample's frame and hold its growth in the host - #6997
Merged
Merged
Conversation
leaf-agent
approved these changes
Nov 24, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 24, 2026
Brings in main's six newer commits, through e7d5808 (#6998). One conflict, in the imports of browser/runtime/annotation-overlay/margin-projection.js. This branch imports `focusByKey` and `focusKey` from carry.js, so that Back returns the user to where they were in a card. #6998 moved `rove` out of focus.js into lib/roving.js and imports it from there. The resolution keeps both imports. The rest of the file merged cleanly, as main plus this branch's card changes. None of the incoming commits touches history.js, version.js, prepaint.js, bootstrap.js, carry.js, document-inputs.js or leaf.js. Their thread changes are these: - #6995 changes how a widget says its seats changed (`lf-layout`) and releases an outlet through the surface handle. - #6997 changes how a live sample's growth is held. - #6998 moves `el` and `rove` into the library. None of them changes thread destinations, the entry's record or the handoff. > _This was written by Claude Code on behalf of max-sixty_
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.
One step of the package-interface redesign (step six, the
sample-hosttrial). The hostmountSamplereturns now gives a block's frame its child's height and holds a resize the reader did not ask for while it would move what they see, the rulelf-samplekept in about seventy-five lines.heldGrowth,whenNoneand the host'sheightnotice leave the package API (114 exported names to 112), for independent packages too. The two examples that mount a sample themselves drop their own sizing and gain the hold.For review: no option carries
lf-sample's state. The host learns Full view fromsetWindow, and whether the reader asked from where the frame stood as it mounted,reset()and the child's input notices.growthIsSeenstays:lf-samplestill asks it to choose between starting at once andwhenNear.whenNeardrops the landing its callback returned; the host declares it withpending-task. A user could see two changes, both where the host cannot tell the reader asked: Reset on a never-started sample out of sight, and a dynamic-widgets preview staged out of sight, hold later growth once scrolled to.Ran every live-sample test in Chromium, 22 in Firefox,
leaf-dev probe --basein both, andpnpm run check.