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

fix(wrapText): trim lines #1109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

yassilah
Copy link

Currently, when using overflow: break on Text, the system will break the line even if the edge characters are empty spaces. This PR fixes it by skipping the width calculation when the first character is an empty space and then trims each line at the end. It also recalculates the right lineWidths and renders properly both with textAlign: left and textAlign: right.

Before:
Capture d’écran 2024-12-23 à 12 19 32
Capture d’écran 2024-12-23 à 12 20 48

After:
Capture d’écran 2024-12-23 à 12 19 41
Capture d’écran 2024-12-23 à 12 20 39

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