Prevent negative scroll for sidebar (#1819)

This commit is contained in:
aignatov-bio 2019-06-05 12:41:27 +02:00 committed by GitHub
parent b94cab6e37
commit d553fee2b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -268,6 +268,7 @@
var offset;
if ($('#slide-panel .active').length) {
offset = $('#slide-panel .active').offset().top - 50;
if (offset < 0) offset = 0;
$('#slide-panel .tree').scrollTo(offset, 10);
}
}