-
-
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
TextAlignment.DetectFromContent with an RTL line and TextWrapping produces a width of 0 #16009
Comments
That seems unrelated, the text is simply too long for the remaining space. |
I double checked and the tooltip is limited to 240 pixels wide with TextWrapping... so there is no reason that the text is truncated. May some kind of rounding error, or a measure that is not called. |
Until the bug is fixed, here a ugly workaround for tooltips if someone need:
Then in ToolTip theme: The tooltip is no more truncated at the end, but there is an additional whitespace, so small tooltips are no more centered. |
This is unrelated to the original issue. Please create a new issue with a detailed reproducible. |
Describe the bug
Consider the following text box which has 3 lines, one of them in Hebrew, a right-to-left language:
The TextBox incorrectly measures a width of 0:
(It has some width in the screenshot above due to padding, disable with
Padding="0"
)To Reproduce
Use the XML provided above.
Expected behavior
The TextBox should have the same width as it has when
TextAlignment
is set toLeft
:Avalonia version
11.0.10
OS
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: