From fe67f0c63013d35ae7481c507832321ec55a8edc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sat, 26 Feb 2022 13:08:19 +0100 Subject: [PATCH] theme: no need to resize flex sidebar #210 --- static/js/theme.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/static/js/theme.js b/static/js/theme.js index 9fb4867370..bb042e9419 100644 --- a/static/js/theme.js +++ b/static/js/theme.js @@ -278,12 +278,10 @@ function initArrowNav(){ function initMenuScrollbar(){ var setMenuHeight = function (){ - $('#sidebar .highlightable').height($('#sidebar').innerHeight() - $('#header-wrapper').height() - 40); ps && ps.update(); }; var ps = new PerfectScrollbar('#sidebar .highlightable'); - setMenuHeight(); // to inform scrollbar of resizing $(window).resize(function() {