Skip to content

Fix issue where text would truncate sometimes#47294

Closed
joevilches wants to merge 1 commit into
facebook:mainfrom
joevilches:export-D65171352
Closed

Fix issue where text would truncate sometimes#47294
joevilches wants to merge 1 commit into
facebook:mainfrom
joevilches:export-D65171352

Conversation

@joevilches
Copy link
Copy Markdown
Contributor

Summary:
TextView will set setUseLineSpacingFromFallbacks to true for their StaticLayouts while we ignore it in this case (false default). The docs even recommend setting it to true: https://developer.android.com/reference/android/text/StaticLayout.Builder#setUseLineSpacingFromFallbacks(boolean)

We set this in the StaticLayout builder below, but not up here so lets do that.

Changelog: [Internal]

Differential Revision: D65171352

Summary:
TextView will set `setUseLineSpacingFromFallbacks` to `true` for their `StaticLayout`s while we ignore it in this case (`false` default). The docs even recommend setting it to `true`: https://developer.android.com/reference/android/text/StaticLayout.Builder#setUseLineSpacingFromFallbacks(boolean)

We set this in the `StaticLayout` builder below, but not up here so lets do that.

Changelog: [Internal]

Differential Revision: D65171352
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 29, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D65171352

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 9f73ede.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Oct 30, 2024
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @joevilches in 9f73ede

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants