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

Add subnav height to sidebar scroll calculation

Closes #30063

See merge request !10262
This commit is contained in:
Filipa Lacerda 2017-03-30 13:00:33 +00:00
commit 024d8be0f8
1 changed files with 1 additions and 1 deletions

View File

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