-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Text decoration (undeline, linethrough) is wrong when direction is set to 'rtl' and align is not right #7076
Comments
Thanks i ll look into this asap |
Yup, cursor position and text selection are also off when |
For now RTL works with text-align right only. Are you RTL users/writers? how does the implementation look like to you? |
Ok now i checked the issue code sample. |
this pr #7104 fixes the bug. |
Version
4.5.0
Test Case
https://jsfiddle.net/human_a/epfjmbot/
Information about environment
Which browsers? Chrome latest
The text decorations (undeline, linethrough) are being drawn wrong. I think the
_getLineLeftOffset
andgetLineWidth
functions are calculating it wrong. The results vary when changing text alignment too.The text was updated successfully, but these errors were encountered: