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

Fix tooltips creating a scrollbar when overflowing off the screen in Chrome #4364

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

cmdcolin
Copy link
Collaborator

@cmdcolin cmdcolin commented Apr 30, 2024

Fixes #4346

See strategies here https://floating-ui.com/docs/usefloating#strategy

I tested position:absolute also (as the link says that is the 'least work' for the browser but it causes overflow) but it caused the scrollbar to be created

The alternative to this is to properly "flip" the tooltip so that it avoids going the screen

@cmdcolin
Copy link
Collaborator Author

note: this also removes packages/core/ui/Tooltip. It was unused in our repo

@cmdcolin cmdcolin merged commit 4f00ac6 into main Apr 30, 2024
10 checks passed
@cmdcolin cmdcolin deleted the fix_tooltip branch April 30, 2024 14:32
@cmdcolin cmdcolin added the bug Something isn't working label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dotplot tooltip on Chrome can result in fast scrollbar appearing/disappearing
1 participant