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

Tooltips/popovers (floating elements) width max-width break if there is a scrollbar for vertical scrolling #754

Open
LukasKalbertodt opened this issue Mar 16, 2023 · 0 comments
Labels
area:frontend Everything frontend related kind:bug Bug

Comments

@LukasKalbertodt
Copy link
Member

The problem is that the floating elements have max-width: calc(100vw - 16px) (because it has 8px padding on each side to the viewport edge). Problem is that vw is broken when there is a scroll bar: they still refer to the whole width without scrollbar. Thus, the floating element overflows the actual viewport. And funnily, because of JS stuff, you can then scroll to the right till forever, since the JS code always moves the floating element to the right as well.

@LukasKalbertodt LukasKalbertodt added area:frontend Everything frontend related kind:bug Bug labels Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:frontend Everything frontend related kind:bug Bug
Projects
None yet
Development

No branches or pull requests

1 participant