Set sidebar height to 100% if at top of page

parent 178be67d
No related merge requests found
...@@ -72,6 +72,8 @@ ...@@ -72,6 +72,8 @@
const diff = $navHeight - $('body').scrollTop(); const diff = $navHeight - $('body').scrollTop();
if (diff > 0) { if (diff > 0) {
$('.right-sidebar').outerHeight($(window).height() - diff); $('.right-sidebar').outerHeight($(window).height() - diff);
} else {
$('.right-sidebar').outerHeight('100%');
} }
} }
......
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