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

Link is not scrolling correctly when containerElement has a border #560

Open
danchistyakov opened this issue Jul 20, 2023 · 1 comment
Open

Comments

@danchistyakov
Copy link

danchistyakov commented Jul 20, 2023

Hello! In my real project I have a 1px border on my container element, so link scrolling is not passing this 1px to the element. So I don't have activeClass on my Link and I need to scroll this 1px manually.

Here's an example of 10px border to see the problem clearer.

Example: CodeSandbox.

Do you have any ideas? Maybe lib needs some fixes or I need to set this border in my project to another div?

@fisshy

@fisshy
Copy link
Owner

fisshy commented Nov 1, 2023

That's what the offset was meant to solve

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

2 participants