BigW Consortium Gitlab

Commit 024d8be0 by Filipa Lacerda

Merge branch '30063-builds-sidebar-stutter' into 'master'

Add subnav height to sidebar scroll calculation Closes #30063 See merge request !10262
parents 4d3b5d52 5de7eac6
......@@ -209,7 +209,7 @@ import Cookies from 'js-cookie';
};
Sidebar.prototype.setSidebarHeight = function() {
const $navHeight = $('.navbar-gitlab').outerHeight() + $('.layout-nav').outerHeight();
const $navHeight = $('.navbar-gitlab').outerHeight() + $('.layout-nav').outerHeight() + $('.sub-nav-scroll').outerHeight();
const $rightSidebar = $('.js-right-sidebar');
const diff = $navHeight - $(window).scrollTop();
if (diff > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment