menu: bring active item in sight for large menus #149

This commit is contained in:
Sören Weber 2021-11-13 14:11:46 +01:00
parent 5c306f0327
commit 4ca21ef1bb
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -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',