From 21a3f77b1480106624d7ccafff770335121a347a Mon Sep 17 00:00:00 2001 From: Adam Snyder Date: Thu, 10 Sep 2020 09:21:20 -0700 Subject: [PATCH] Remove code that adjusts navigation margin (#419) --- static/js/learn.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/static/js/learn.js b/static/js/learn.js index 036952c4ba..b0d199da86 100644 --- a/static/js/learn.js +++ b/static/js/learn.js @@ -350,22 +350,6 @@ jQuery(document).ready(function() { }); jQuery(window).on('load', function() { - - function adjustForScrollbar() { - if ((parseInt(jQuery('#body-inner').height()) + 83) >= jQuery('#body').height()) { - jQuery('.nav.nav-next').css({ 'margin-right': getScrollBarWidth() }); - } else { - jQuery('.nav.nav-next').css({ 'margin-right': 0 }); - } - } - - // adjust sidebar for scrollbar - adjustForScrollbar(); - - jQuery(window).smartresize(function() { - adjustForScrollbar(); - }); - // store this page in session sessionStorage.setItem(jQuery('body').data('url'), 1);