Skip to content
Snippets Groups Projects
Commit eb4721cf authored by Chris Lawton's avatar Chris Lawton
Browse files

fixes firefox bug so css custom prop is the correct value

parent baddb8a6
No related branches found
No related tags found
No related merge requests found
...@@ -150,10 +150,9 @@ ...@@ -150,10 +150,9 @@
}); });
// Get the header and admin bar height and set custom prop with value // Get the header and admin bar height and set custom prop with value
(() => { $(window).on('load', function () {
const headerHeight = $('.header').outerHeight(); const headerHeight = $('.header').outerHeight();
const adminbarHeight = $('.admin-bar').outerHeight(); const adminbarHeight = $('.admin-bar').outerHeight();
document.documentElement.style.setProperty('--header-admin-height', headerHeight + adminbarHeight + 'px'); document.documentElement.style.setProperty('--header-admin-height', headerHeight + adminbarHeight + 'px');
})(); });
})(jQuery); })(jQuery);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment