-
-
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
ToolTip cuts off text if font size is changed with styles #17862
Comments
I have tried targeting tooltip directly, and the result is the same.
|
Since ToolTip default still is limited in width, to avoid extra-long tooltips, it should wrap. |
Note that there has been a text measurement issue since the 11.0 last previews that causes this same issue in appearance. It's probably the same overall. In that issue color name tooltips in the ColorPicker are cut off in exactly the same way. It's always been reproducible with the ControlCatalog. If it isn't an issue with text measurement / DPI / Display Scaling, it may be another popup lifecycle issue. I have long thought styles aren't evaluated correctly when popups are opened and there are other open issues for that. I don't think this is a beginner issue to fix. Edit: If it's a Popup style application issue here is where it was last discussed on my end: #14145 (comment) |
#17875 (comment) could you give that PR a try? I know it's focused on Runs but maybe it helps anyways? |
Looks like it was tested by a gentleman in that issue. |
Describe the bug
If the font size for TextBlock is changed in the parent container, ToolTip cuts off the last word of the string.
The issue goes away if the string is changed in very minor ways, such as adding spaces or removing a colon:
To Reproduce
Set the font size to 16 and create a tooltip with the following text:
Injectable: Monster in the Drain
ToolTipBugSample.zip
Expected behavior
I expect the ToolTip to adapt to FontSize changes, and either display the full string, or to wrap it.
Avalonia version
11.2.3
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: