From 4ca21ef1bba077cbc5ae83dda8a3111d8689b66c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sat, 13 Nov 2021 14:11:46 +0100 Subject: [PATCH] menu: bring active item in sight for large menus #149 --- static/js/relearn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/relearn.js b/static/js/relearn.js index 01cdbcb34f..7aa6066b46 100644 --- a/static/js/relearn.js +++ b/static/js/relearn.js @@ -113,7 +113,7 @@ function initMermaid() { function scrollToActiveMenu() { window.setTimeout(function(){ - var e = $("#sidebar ul.topics li.active")[0]; + var e = $("#sidebar ul.topics li.active a")[0]; if( e && e.scrollIntoView ){ e.scrollIntoView({ block: 'center',