1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 02:19:55 +00:00

Fix typo from 8a38685

This commit is contained in:
Jermolene 2018-08-16 16:08:33 +01:00
parent 8a38685de9
commit b55a3102be

View File

@ -63,7 +63,7 @@ PageScroller.prototype.scrollIntoView = function(element) {
var toolbar = document.querySelector(".tc-adjust-top-of-scroll"),
offset = 0;
if(toolbar) {
offset = parseInt(window.getComputedStyle(toolbar).offsetHeight,10);
offset = toolbar.offsetHeight;
}
// Get the client bounds of the element and adjust by the scroll position
var getBounds = function() {