-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[TextTrimming] Fixed some text trimming bugs #17998
base: master
Are you sure you want to change the base?
[TextTrimming] Fixed some text trimming bugs #17998
Conversation
@adirh3 can you check this branch and make sure it fixes the issues? |
For comparison, this is what PR #17899 does: |
At least the chinese trimming doesn't make sense for me after change. |
Thanks for this. I will have a closer look shortly. I am not so sure we should trim text in logical order. |
I think you are right that we should trim text in logical order because otherwise text isn't split continuously. We can't break public API in a minor release so we need to revert the breaking change. Mark the line with a TODO12 comment and add a comment to the breaking change tracking issue. In general we need unit tests for this PR. My PR wasn't merged because I had no time working on tests yet. I am fine with dropping my PR in favor of my PR. We need a test that ensures text is trimmed continuously. We need a test that ensures the ellipsis is drawn at the right position. We need tests that make sure bidi order isn't altered for trimmed text. |
993bd67
to
3bc4b41
Compare
I have now reverted the breaking changes. one advantage I see in passing the It's not clear to me how this should be implemented so that it will merge into the next major version, so I'll leave it without breaking changes for now. I will try to add the unit tests soon. |
You can test this PR using the following package version. |
You can test this PR using the following package version. |
You can test this PR using the following package version. |
@Gillibald there are also some bugs that need to be fixed in |
A separate PR would be ideal |
@Gillibald Any thoughts about this? maybe it's best to leave it for v12 with the breaking changes? |
You should at least create a related issue about your findings. Reviewing your PR shortly. Thanks for your contribution. |
You can test this PR using the following package version. |
What does the pull request do?
There are currently some bugs with text trimming.
@Gillibald sorry I'm sending this while you have an open PR on this issues.
What is the current behavior?
What is the updated/expected behavior with this PR?
How was the solution implemented (if it's not obvious)?
Currently, text trimming collapses the text-runs in their visual order (and in reverse RTL), after this PR, it collapses the text-runs in their logical order (before bidi-reordering).
Checklist
Fixed issues
Fixes #14068
Fixes #17569
Fixes #17888