Repository navigation
Reveal rows in fixed layers, and read the thread card's top row by its painted name - #2306
Merged
Merged
Conversation
…s painted name #2255 moved walk and search landings from native focus scrolling to Leaf's document-local `scrollIntoView`. That function returned early when no reading region held the destination, which is every row of a modal layer: End in the Page Map focused its last row and left it below the list's scrollport. A destination with no reading region now has its enclosing boxes reveal it nearest, out to the fixed layer, and the walk stops at a fixed box whether or not that box clips. The thread card test probed the card's top row at half a head's height. On macOS the card lands with its top 7px into the previous message's pushed-off head, a blank foot, then the 16px gap before the next message's name, so the probe read the gap; Linux metrics happened to land on a head. The reading is now the first name painted in the card, whose head must start in the top row, with the words under that head written by the same message. Fixes, on main at 8bff2b4: - test_render_margin.py::test_page_map_filtering_keeps_search_and_close_in_place (all viewports) - test_render_threads.py::test_the_thread_card_opens_on_its_latest_message_under_its_own_name (macOS) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 10, 2026
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.
Two browser tests fail on main at 8bff2b4. Neither is among the
fix/ci-38051185604-*PRs.Page Map End leaves the last row out of view (
test_page_map_filtering_keeps_search_and_close_in_place, all three viewports; red in main CI run 38067192989). #2255 moved walk and search landings from native focus scrolling to Leaf's document-localscrollIntoView. That function returned early when no reading region held the destination, and no reading region holds a row in a modal layer. So End focused the Page Map's last row and left it below the list's scrollport. A destination with no reading region now has its enclosing boxes reveal it at the nearest edge, out to the fixed layer. The walk also stops at a fixed box whether or not that box clips, so anoverflow: visiblefixed wrapper no longer lets the reveal scroll the pane behind it.The thread card's top-row reading depends on font metrics (
test_the_thread_card_opens_on_its_latest_message_under_its_own_name, fails on macOS, passes on Linux CI). On macOS the card lands with its top 7px into the previous message's pushed-off sticky head. That 7px is the head's blank foot, followed by the 16px gap before the next message's name. The test probed at half a head's height and hit the gap. The test now reads the first name painted in the card, requires that name's head to start in the top row, and checks that the words under the head belong to the same message, which is stricter than the oldunder in (named, -1).