You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the readthedocs theme (mkdocs, version 0.16.2) we're seeing an exception from this line: bounds.top = this.offset().top; in the theme.js file.
It seems this was introduced by #1156 and referenced from #803.
We can observe it happening when the currently active TOC item is below the fold (scrolled off screen to the bottom).
Here's the stack trace:
Uncaught TypeError: Cannot read property 'top' of undefined
at n.fn.init.$.fn.isFullyWithinViewport (theme.js:67)
at HTMLDocument.<anonymous> (theme.js:74)
at j (jquery-2.1.1.min.js:2)
at Object.fireWith [as resolveWith] (jquery-2.1.1.min.js:2)
at Function.ready (jquery-2.1.1.min.js:2)
at HTMLDocument.I (jquery-2.1.1.min.js:2)
Testing in Chrome 56.0.2924.87 on macOS 10.12.3.
As a workaround we've created an override theme.js file to remove the scroll behaviour.
The text was updated successfully, but these errors were encountered:
Fixes a JavaScript error when looking for a current page in the TOC
when there is not a current page selected, in the case of Search, 404
or any page that isn’t listed in the TOC. This checks if a TOC item
with the class of ‘current’ is in the document, and if not, does not
call the viewport check or scroll the TOC area.
Addresses mkdocs#1177, introduced in mkdocs#1156 and referenced in mkdocs#803.
Fixes a JavaScript error when looking for a current page in the TOC
when there is not a current page selected, in the case of Search, 404
or any page that isn’t listed in the TOC. This checks if a TOC item
with the class of ‘current’ is in the document, and if not, does not
call the viewport check or scroll the TOC area.
Fixes#1177.
In the readthedocs theme (
mkdocs, version 0.16.2
) we're seeing an exception from this line:bounds.top = this.offset().top;
in thetheme.js
file.It seems this was introduced by #1156 and referenced from #803.
We can observe it happening when the currently active TOC item is below the fold (scrolled off screen to the bottom).
Here's the stack trace:
Testing in Chrome 56.0.2924.87 on macOS 10.12.3.
As a workaround we've created an override
theme.js
file to remove the scroll behaviour.The text was updated successfully, but these errors were encountered: