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
TooltipPlugin2: Raise parent grid item z-index when pinned #76379
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
leeoniya
force-pushed
the
leeoniya/tooltipplugin2-fixes
branch
from
October 11, 2023 18:04
b5e5a81
to
61c449f
Compare
leeoniya
force-pushed
the
leeoniya/tooltipplugin2-fixes
branch
from
October 11, 2023 18:28
61c449f
to
724d698
Compare
leeoniya
requested review from
Clarity-89,
ashharrison90 and
nmarrs
and removed request for
a team
October 12, 2023 03:33
adela-almasan
approved these changes
Oct 12, 2023
leeoniya
added
no-backport
Skip backport of PR
no-changelog
Skip including change in changelog/release notes
labels
Oct 12, 2023
leeoniya
changed the title
TooltipPlugin2: Fixes
TooltipPlugin2: Raise parent grid item z-index and unpin on external click
Oct 12, 2023
leeoniya
changed the title
TooltipPlugin2: Raise parent grid item z-index and unpin on external click
TooltipPlugin2: Raise parent grid item z-index when pinned
Oct 12, 2023
leeoniya
commented
Oct 12, 2023
@@ -96,10 +96,12 @@ | |||
} | |||
|
|||
// Hack for preventing panel menu overlapping. | |||
.react-grid-item.context-menu-open, | |||
.react-grid-item.resizing, |
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 fixes a prior regression where a panel that's being resized may temporarily go under an adjacent hovered panel when the mouse moves fast.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/frontend
area/tooltip
no-backport
Skip backport of PR
no-changelog
Skip including change in changelog/release notes
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ok, couple things going on here:
in a dashboard grid, ensures that panels containing pinned context menus which extend beyond the panel bounds are drawn over adjacent panels even when not hovered. before this PR:
Peek.2023-10-11.19-16.mp4
with this PR we automatically unpin when there is a mousedown or mouseup outside the pinned menu container. it's similar to what ClickOutsideWrapper.tsx does. this prevents a bunch of bug related to positioning and z-index bug when resizing panels with pinned items, or entering panel edit when a pinned menu exists.
general refactoring/simplification of TooltipPlugin2 to prepare it for merging in of ZoomPlugin, AnnotationEditorPlugin, and PlotTooltipInterpolator