Skip to content
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 does not show when they would be over the taskbar or dock. #8638

Closed
Stannieman opened this issue Aug 1, 2022 · 1 comment · Fixed by #13565
Closed

ToolTip does not show when they would be over the taskbar or dock. #8638

Stannieman opened this issue Aug 1, 2022 · 1 comment · Fixed by #13565
Assignees
Labels
bug help-wanted A contribution from the community would be most welcome.

Comments

@Stannieman
Copy link

Describe the bug
When a control has a ToolTip and it is pretty close to the bottom of the screen then the Tip does not show if it's bounds (when it would show) interfere with the taskbar (Windows) or the dock (macOS).

To Reproduce
Steps to reproduce the behavior:

  1. Create a control with ToolTip.
  2. Drag Window so that the control is close to the taskbar or dock.
  3. Hover over the control.
  4. The ToolTip does not show.

Expected behavior
The ToolTip is shown. If it would interfere with the taskbar or dock it can be shown above the mouse pointer similar to how ComboBoxes change their expanding direction.

Desktop (please complete the following information):

  • OS: Windows 11 (22000.832), macOS Montery (12.5)
@Stannieman Stannieman added the bug label Aug 1, 2022
@Stannieman
Copy link
Author

Stannieman commented Aug 3, 2022

I think it is only indirectly related to the taskbar or dock.
The real cause is that the ToolTip is sometimes placed underneath the pointer. This causes the control that opened the ToolTip to fire PointerExited which immediately closes the ToolTip again. We get an infinite loop of the ToolTip opening and closing.

Either:

  • ToolTips should always be placed away from the pointer if possible.
  • A ToolTip is kept open if the pointer is placed over itself.

I prefer the 2nd option, especially cause messing with the placement can interfere with the ToolTip.Placement property.
Not sure how to solve this though because IsPointerOver seems to be false for everything in the Popup.

@maxkatz6 maxkatz6 added the help-wanted A contribution from the community would be most welcome. label Aug 10, 2022
@grokys grokys self-assigned this Oct 4, 2023
grokys added a commit that referenced this issue Nov 10, 2023
grokys added a commit that referenced this issue Nov 10, 2023
github-merge-queue bot pushed a commit that referenced this issue Nov 24, 2023
* Add failing test for #8638.

* Don't hide tooltip when pointer is over tooltip.

Fixes #8638

* Close the tooltip when pointer exits.

If the pointer has been moved from the control to the tooltip, then out of the tooltip to another control, ensure that the tooltip is closed.

* AdornedControl can be a standard CLR property.
maxkatz6 pushed a commit that referenced this issue Dec 5, 2023
* Add failing test for #8638.

* Don't hide tooltip when pointer is over tooltip.

Fixes #8638

* Close the tooltip when pointer exits.

If the pointer has been moved from the control to the tooltip, then out of the tooltip to another control, ensure that the tooltip is closed.

* AdornedControl can be a standard CLR property.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help-wanted A contribution from the community would be most welcome.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants