mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
increase treenav scroll-margins
was too small in deep folders, and/or long foldernames
This commit is contained in:
parent
96acbd3593
commit
d1a4d335df
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue