Open Tyrrrz opened 1 week ago
17402
Thanks. Although in my case, removing HorizontalAligntment
on the text block did not help. Is it because the parent element also has HorizontalAlignment
?
Try this build 11.3.999-cibuild0053119-alpha
to make sure the fix is working for you
Describe the bug
The following element tree:
Is rendered differently between
11.1.4
and11.2.0
.On
11.1.4
it's rendered correctly:On
11.2.0
it's rendered incorrectly:Removing the
TextAlignment
property seems to fix the visual issues, but then the text is obviously not aligned as desired:None of the other properties seem to have an effect.
To Reproduce
The project where this happens is open source, so it's easy to reproduce by just checking out the right refs.
11.1.4
): https://github.com/Tyrrrz/YoutubeDownloader/tree/223e4a04e848661d6bd7c963ceadfad8ae815298 (223e4a
)11.2.0
): https://github.com/Tyrrrz/YoutubeDownloader/tree/b1632f8d119302ad9e79e01df3d4f2d9176276c7 (b1632f
)To reproduce, simply run the only Avalonia project in the solution. The issue should present itself immediately as soon as the window is opened.
Expected behavior
The text should be center-aligned, as it was before
11.2.0
.Avalonia version
11.2.0
OS
Windows
Additional context
No response