-
Notifications
You must be signed in to change notification settings - Fork 33.3k
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
base: main
Are you sure you want to change the base?
fixes #168895 #169034
Conversation
I don't believe that I need to review this |
There was a problem hiding this 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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
Is this still relevant? |
fixes #168895