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

Fix scrolling to active item in sidebar on load #688

Merged
merged 2 commits into from Dec 5, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/changelog.rst
Expand Up @@ -3,6 +3,21 @@
Changelog
*********

master
======

New Features
------------

Fixes
-----

* Fix scrolling to active item in sidebar on load (#214)

Other Changes
-------------


v0.4.2
======

Expand Down
1 change: 1 addition & 0 deletions js/theme.js
Expand Up @@ -152,6 +152,7 @@ function ThemeNav () {
link.closest('li.toctree-l2').addClass('current');
link.closest('li.toctree-l3').addClass('current');
link.closest('li.toctree-l4').addClass('current');
link[0].scrollIntoView();
}
}
catch (err) {
Expand Down