Skip to content

Conversation

@mozzius
Copy link
Member

@mozzius mozzius commented Oct 14, 2025

BASED ON v1.4.0 - VIEW DIFF HERE

Certain fractional font sizes cause the calculation where we estimate the number of lines to be off, causing a phantom extra line.

This code path is really only needed for when the numberOfLines prop is set along with a custom line height. This PR just skips this codepath where possible - thus the bug remains when numberOfLines is set, but fixes the common case.

Before After

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.

2 participants