Skip to content

fixes #168895 #169034

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

fixes #168895 #169034

wants to merge 3 commits into from

Conversation

sbatten
Copy link
Member

@sbatten sbatten commented Dec 13, 2022

fixes #168895

@sbatten sbatten enabled auto-merge (squash) December 13, 2022 19:08
@sbatten sbatten self-assigned this Dec 13, 2022
@sbatten sbatten requested review from alexr00 and jrieken and removed request for alexr00 December 13, 2022 19:08
@sbatten sbatten disabled auto-merge December 13, 2022 19:08
@sbatten sbatten requested a review from alexr00 December 13, 2022 19:08
@vscodenpa vscodenpa added this to the January 2023 milestone Dec 13, 2022
@jrieken jrieken removed their request for review December 14, 2022 08:38
@jrieken
Copy link
Member

jrieken commented Dec 14, 2022

I don't believe that I need to review this

Copy link
Member

@alexr00 alexr00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't reproduce the original issue, but this seems to work well. I just have one concern about the hover placement.

this._actionHoverDelegate = {
placement: 'element',
showHover: (options: IHoverDelegateOptions) => {
options.hoverPosition = HoverPosition.ABOVE;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use below instead so that we mimic OS tooltips better?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason I chose ABOVE is because while native is below, its also slightly offset to account for the mouse position. Our hover service does seem to do this. This is why I went with above and with a beak.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you still prefer BOTTOM, we should improve the service to avoid the cursor.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I forgot that the service does do this if you use mouse placement, but not if you choose element placement. Choosing mouse placement, the hover does not show for me, but I did not debug yet

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still not sure what's going on with the mouse placement, but in the title bar we already show beak/element placement for action icons, so I think we should be consistent. We do below in the title bar because there is no above option, but we have a little more space there. Let me know what you think with all this info in mind.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would still put it below. We show the tree item hovers below, it would be inconsistent to show the action hovers above.

@sbatten
Copy link
Member Author

sbatten commented Dec 28, 2022

@alexr00 this is working now how you expect, but I may go in favor of #170194

Copy link
Member

@alexr00 alexr00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This now breaks the positioning of the hover with the mouse.

@sbatten sbatten modified the milestones: January 2023, February 2023 Jan 23, 2023
@sbatten sbatten modified the milestones: February 2023, March 2023 Feb 17, 2023
@sbatten sbatten modified the milestones: March 2023, April 2023 Mar 20, 2023
@sbatten sbatten modified the milestones: April 2023, May 2023 Apr 24, 2023
@sbatten sbatten modified the milestones: May 2023, On Deck Jun 1, 2023
@vivodi
Copy link

vivodi commented Dec 29, 2024

Is this still relevant?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tree view item description hover sometimes renders under tree view item button tooltip
5 participants