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

scrollPadding not used when scroll-to = tooltip #2079

Open
jeroen opened this issue Sep 21, 2024 · 0 comments
Open

scrollPadding not used when scroll-to = tooltip #2079

jeroen opened this issue Sep 21, 2024 · 0 comments

Comments

@jeroen
Copy link

jeroen commented Sep 21, 2024

Description

When data-scroll-to="tooltip" the page scrolls to set the tooltip somewhere in the middle instead of at the top.

Expected Behavior

When data-scroll-to="tooltip" scroll to the point where tooltip is 30px (scrollPadding) from the top, in the same way as data-scroll-to="element" scrolls to the point where element is 30px from the top.

Actual Behavior

It scrolls to the tooltip somewhere in the middle of the screen.

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

No branches or pull requests

1 participant