Skip to content
Snippets Groups Projects
Commit 024d8be0 authored by Filipa Lacerda's avatar Filipa Lacerda
Browse files

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

Add subnav height to sidebar scroll calculation

Closes #30063

See merge request !10262
parents 4d3b5d52 5de7eac6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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) {
Loading
Loading
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