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 drawing of underlines when they have a nbsp and span to the end of a line. #1271

Merged
merged 1 commit into from
Feb 27, 2020

Conversation

SergioEstevao
Copy link
Contributor

@SergioEstevao SergioEstevao commented Feb 26, 2020

Fixes #wordpress-mobile/gutenberg-mobile#1218

Change the range were underlines are drawn to avoid them to span to the end of a line. This is a workaround a bug from the Apple CoreText layout system where underlines that contain the &nbsp character expand to the end of the line.

BeforeAfter

To test:

  • Run the demo app
  • Open the content Underline NBSP
  • Check that underlines are draw correctly.

Copy link
Contributor

@etoledom etoledom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working great! 🎉

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

Successfully merging this pull request may close these issues.

2 participants