Repository navigation
Keep table row dividers when a table scrolls into view, and stop an iOS crash in table-heavy chats - #1467
Merged
Conversation
…OS crash in table-heavy chats On macOS a table's row dividers and header tint were borders and fills on the text cells, so AppKit only painted them in a redraw that also reached that row's text. A table that scrolled or resized into view a few points at a time was drawn in strips, and a strip that held a divider but no text left the divider blank until something redrew the whole table. Tables now paint their own dividers and header tint from the row positions, in the table's draw pass, so any strip gets them. The shared MarkdownTableChrome works out where they go and fills only the ones inside the rectangle being redrawn. The old 1pt cell border became 1pt of bottom padding, so row heights and measured table heights are unchanged, and the redraw-widening workaround is gone. iOS paints its dividers with the same code, into the existing table tiles, instead of keeping one layer per divider and repositioning them on every scroll. Scrolling a table-heavy chat on iOS could crash: when the visible part of a table was a sliver under half a point, the tile range was built with its upper bound below its lower bound. The range is now clamped. Co-Authored-By: Claude Fable 5.2 <[email protected]>
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.
What changed
Table layout is unchanged: the old 1pt cell border became 1pt of bottom padding, so row heights and measured table heights are the same. The redraw-widening workaround in
TableTextViewis removed.How it was checked
Range requires lowerBound <= upperBoundfatal error on the old math).bun run checkpasses, including the full Swift suites.Not checked
🤖 Generated with Claude Code