Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop the ceil calls. #405

Merged
merged 1 commit into from
Mar 23, 2023
Merged

Drop the ceil calls. #405

merged 1 commit into from
Mar 23, 2023

Conversation

thomasvl
Copy link
Member

The ceil calls were added back when updating things for iOS 7, to model what the older -sizeWithFont: call did. But looking back, Apple likely moved off the api (and behavior) with the adoption of retina screens, so we should do the fade calc based on the fractional sizes also, so we don't force a fade when the string fully fits.

The `ceil` calls were added back when updating things for iOS 7, to model what
the older `-sizeWithFont:` call did. But looking back, Apple likely moved off
the api (and behavior) with the adoption of retina screens, so we should do the
fade calc based on the fractional sizes also, so we don't force a fade when the
string fully fits.
@thomasvl thomasvl requested a review from dmaclach March 23, 2023 21:12
@thomasvl thomasvl merged commit 1b2da5e into google:main Mar 23, 2023
@thomasvl thomasvl deleted the fade_issue branch March 23, 2023 22:06
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