Skip to content

fix: guarantee first-line text headroom so post headings are not clipped - #81

Closed
IamNewHands wants to merge 1 commit into
infinityf4p:mainfrom
IamNewHands:fix/text-clip-first-line
Closed

IamNewHands wants to merge 1 commit into
infinityf4p:mainfrom
IamNewHands:fix/text-clip-first-line

Conversation

@IamNewHands

Copy link
Copy Markdown

iOS 17+ .oversize can draw a paragraph's first line above the container origin while CoreText reports no ascent overflow, so a small fixed guard lets some post/reply headings lose their top pixels. Always measure the first line's glyph ink, floor the top inset at 3pt, and reserve the negative usedRect.minY extent in the measured height so the heading of a post or reply can never be clipped. Update the smoke test accordingly.

iOS 17+ .oversize can draw a paragraph's first line above the container
origin while CoreText reports no ascent overflow, so a small fixed guard
lets some post/reply headings lose their top pixels. Always measure the
first line's glyph ink, floor the top inset at 3pt, and reserve the
negative usedRect.minY extent in the measured height so the heading of a
post or reply can never be clipped. Update the smoke test accordingly.
@IamNewHands IamNewHands closed this Oct 2, 2026
@IamNewHands
IamNewHands deleted the fix/text-clip-first-line branch October 2, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant