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

Add option in ScrollSpy to set the vertical offset #3121

Merged
merged 1 commit into from
May 15, 2016
Merged

Add option in ScrollSpy to set the vertical offset #3121

merged 1 commit into from
May 15, 2016

Conversation

Chrismuzikos
Copy link

A fixed offset of 200px is set in ScrollSpy by default and it should be changed by any user according to its website design.

We can now call :

$('.scrollspy').scrollSpy({ scrollOffsetFix : 55 });

By default, 200px will be used as hardcoded.

@ktamiola
Copy link

Excellent! Works like a charm! Thank you!

@acburst
Copy link
Collaborator

acburst commented May 15, 2016

Thanks for this!

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