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

Limit Scroll Spy to Navigation Elements #343

Merged
merged 2 commits into from
May 9, 2022

Conversation

jocrau
Copy link
Contributor

@jocrau jocrau commented May 9, 2022

It is currently possible to hide elements in the navigation (hideInNav) and/or the content section (hideInContent). In case a type is hidden in the navigation but visible in the content, the scroll spy selects the link in the content as target. This leads to "jumps". The PR resolves this by limiting the scroll spy targets to the #nav element.

@newhouse newhouse requested a review from benogle May 9, 2022 14:35
Copy link
Contributor

@benogle benogle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@newhouse newhouse merged commit 9ada502 into anvilco:main May 9, 2022
@newhouse
Copy link
Collaborator

newhouse commented May 9, 2022

Published in 1.1.3

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

Successfully merging this pull request may close these issues.

3 participants