BigW Consortium Gitlab

Commit c84b03d1 by Alfredo Sumaran Committed by Lin Jen-Shin

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

Fix firefox sidebar height bug Closes #29979 See merge request !10195
parent 6b0bc677
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
Sidebar.prototype.setSidebarHeight = function() { Sidebar.prototype.setSidebarHeight = function() {
const $navHeight = $('.navbar-gitlab').outerHeight() + $('.layout-nav').outerHeight(); const $navHeight = $('.navbar-gitlab').outerHeight() + $('.layout-nav').outerHeight();
const $rightSidebar = $('.js-right-sidebar'); const $rightSidebar = $('.js-right-sidebar');
const diff = $navHeight - $('body').scrollTop(); const diff = $navHeight - $(window).scrollTop();
if (diff > 0) { if (diff > 0) {
$rightSidebar.outerHeight($(window).height() - diff); $rightSidebar.outerHeight($(window).height() - diff);
} else { } 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