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

Fix build sidebar scrolling

parent 8891536c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -67,22 +67,6 @@
 
Build.prototype.initSidebar = function() {
this.$sidebar = $('.js-build-sidebar');
<<<<<<< 36beffc12461d2e479ad8b000b7ba5b6ea40cd33
this.sidebarTranslationLimits = {
<<<<<<< 3ee255139ab555ec49a177d3b2eed65580f36c4f
min: $('.navbar-gitlab').outerHeight() + $('.layout-nav').outerHeight()
};
this.sidebarTranslationLimits.max = this.sidebarTranslationLimits.min + $('.scrolling-tabs-container').outerHeight();
=======
min: 0
}
this.sidebarTranslationLimits.max = $('.scrolling-tabs-container').outerHeight() + $('.navbar-gitlab').outerHeight() + $('.layout-nav').outerHeight();
>>>>>>> Fix sidebar scrolling
this.$sidebar.css({
top: this.sidebarTranslationLimits.max
});
=======
>>>>>>> Keep sidebars absolute until fixed at top; remove unneeded JS
this.$sidebar.niceScroll();
this.$document.off('click', '.js-sidebar-build-toggle').on('click', '.js-sidebar-build-toggle', this.toggleSidebar);
};
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