This commit is contained in:
ed 2021-04-10 20:22:33 +02:00
parent 59ebc795e7
commit c14b17bfaf

View file

@ -941,13 +941,10 @@ var treectl = (function () {
else { else {
var wraph = parseInt(getComputedStyle(ebi('wrap').offsetParent).height), var wraph = parseInt(getComputedStyle(ebi('wrap').offsetParent).height),
top = Math.max(0, parseInt(wrap.offsetTop)), top = Math.max(0, parseInt(wrap.offsetTop)),
treeh = winh - atop; treeh = (winh - atop) - 4;
if (treeh < 10)
return;
tree.style.top = top + 'px'; tree.style.top = top + 'px';
tree.style.height = treeh + 'px'; tree.style.height = treeh < 10 ? '' : treeh + 'px';
} }
} }