|
@@ -24,7 +24,7 @@ console.debug(`Environment: ${hugoEnvironment}`);
|
|
|
// Dynamically get responsive navigation bar height for offsetting Scrollspy.
|
|
|
function getNavBarHeight() {
|
|
|
let navbar = document.getElementById('navbar-main');
|
|
|
- let navbarHeight = (navbar) ? navbar.outerHeight() : 0;
|
|
|
+ let navbarHeight = (navbar) ? navbar.getBoundingClientRect().height : 0;
|
|
|
console.debug('Navbar height: ' + navbarHeight);
|
|
|
return navbarHeight;
|
|
|
}
|