question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Automatic tooltip for TextBlock's that get clipped

See original GitHub issue

We should consider applying a tooltip where possible on TextBlock’s that are clipped either due to maxLines or wrap: false

Seen here a tooltip on the “Too long Agenda Event T…” would improve the user experience.

image

Doesn’t require schema changes, if we’re agreed on this desired behavior, open question is simply how feasible this is on all renderers.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
hulin17commented, Mar 23, 2021

I think ToolTip has another function that it can be used to tell end-users an element can be clicked when users hover over the element. I noticed there is not a function like hovering over element to remind users to know what the element is used for. So if there are too many “Clicked elements”, tooltip or hovering function is necessary. Otherwise users maybe feel confused.

1reaction
dclauxcommented, Aug 10, 2018

It’s a good idea, but the problem is that the truncation is done by the layout engine (the browser for HTML), and as far as I know there is no other way to determine whether the truncation did happened than to:

  • Render the TextBlock without applying truncation
  • Render the TextBlock with truncation applied
  • Get the resulting bounding boxes of both and compare them

This is a very expensive process that would significantly impact performance, especially on Edge where getBoundingClientRect is significantly slower than in other browsers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Auto ToolTip on TextBlock trimming - wpf
Sometimes when the last 2 characters are trimmed the ToolTip is not shown. Any suggestions? wpf · tooltip · textblock · trim ·...
Read more >
Automatically Showing ToolTips on a Trimmed TextBlock ...
How to automatically show ToolTips on a trimmed TextBlock (Silverlight + ... Gets the value of the AutoTooltipProperty dependency property ...
Read more >
Automatically Showing ToolTips on a Trimmed TextBlock ...
The most interesting method is ComputeAutoTooltip which determines whether a tooltip is required. This simply looks at the ActualWidth of the ...
Read more >
TextBlock texttriming text display tooltip issue
Perhaps, you will find them helpful: Automatically Showing Tooltips On A Trimmed Textblock (Silverlight + Wpf) · Show WPF Tooltip if needed
Read more >
ToolTip Class (Windows.UI.Xaml.Controls) - UWP
Here's a ToolTip for a Button. Tool tip control. For design guidelines, see Guidelines for tooltips. Usage. A ToolTip must be assigned to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found