-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 TextBlock TextAlignment issues when a HorizontalAlignment is defined #17402
Fix TextBlock TextAlignment issues when a HorizontalAlignment is defined #17402
Conversation
You can test this PR using the following package version. |
…/Avalonia into fixes/textBlockCenterAlignment
Add some render tests that is covering most measure / arrange scenarios |
…/Avalonia into fixes/textBlockCenterAlignment
You can test this PR using the following package version. |
You can test this PR using the following package version. |
5 similar comments
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. |
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
…ned (AvaloniaUI#17402) * Always measure TextBlock with infinite width * Make sure the constraint is always fulfilled * Add some tests * Adjust tests because we no longer retain the TextLayout in the arrange pass
This bug is blocker for us as the Ribbon is messed up for every textblock. Is there any date for the next release ? |
And this should be considered as backport to 11.2.x :) |
…ned (#17402) * Always measure TextBlock with infinite width * Make sure the constraint is always fulfilled * Add some tests * Adjust tests because we no longer retain the TextLayout in the arrange pass
What does the pull request do?
This PR makes sure the TextBlock is always measured with an infinite width and only aligns it to finite space in the arranging step.
What is the current behavior?
What is the updated/expected behavior with this PR?
How was the solution implemented (if it's not obvious)?
Checklist
Breaking changes
Obsoletions / Deprecations
Fixed issues
Fixes: #17396
Might fix: #17376