From b55a3102bedbdc9773a02d2b1df404f7d238f628 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Thu, 16 Aug 2018 16:08:33 +0100 Subject: [PATCH] Fix typo from 8a38685 --- core/modules/utils/dom/scroller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/utils/dom/scroller.js b/core/modules/utils/dom/scroller.js index 00210d268..d87ef03f2 100644 --- a/core/modules/utils/dom/scroller.js +++ b/core/modules/utils/dom/scroller.js @@ -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() {