theme: no need to resize flex sidebar #210

This commit is contained in:
Sören Weber 2022-02-26 13:08:19 +01:00
parent 1bca218955
commit fe67f0c630
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -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() {