Skip to content
Snippets Groups Projects
Commit 5de7eac6 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray
Browse files

Add subnav height to sidebar scroll calculation

parent 8f93c27d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -198,7 +198,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