Commit 902ea5c8 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Merge branch '29979-firefox-sidebar-height' into 'master'

Fix firefox sidebar height bug

Closes #29979

See merge request !10195
parents 0ed0eb01 bb1ed936
......@@ -200,7 +200,7 @@ import Cookies from 'js-cookie';
Sidebar.prototype.setSidebarHeight = function() {
const $navHeight = $('.navbar-gitlab').outerHeight() + $('.layout-nav').outerHeight();
const $rightSidebar = $('.js-right-sidebar');
const diff = $navHeight - $('body').scrollTop();
const diff = $navHeight - $(window).scrollTop();
if (diff > 0) {
$rightSidebar.outerHeight($(window).height() - diff);
} else {
......
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