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() {