increase treenav scroll-margins

was too small in deep folders, and/or long foldernames
This commit is contained in:
ed 2025-04-13 16:09:14 +00:00
parent 96acbd3593
commit d1a4d335df

View file

@ -6548,8 +6548,8 @@ function tree_scrolltoo(q) {
var ctr = ebi('tree'),
em = parseFloat(getComputedStyle(act).fontSize),
top = act.offsetTop + ul.offsetTop,
min = top - 11 * em,
max = top - (ctr.offsetHeight - 10 * em);
min = top - 20 * em,
max = top - (ctr.offsetHeight - 16 * em);
if (ctr.scrollTop > min)
ctr.scrollTop = Math.floor(min);