From c14b17bfaf5b3a98e0e6630a7653f023e2095d76 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 10 Apr 2021 20:22:33 +0200 Subject: [PATCH] whoops --- copyparty/web/browser.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 5084c653..5d4d74b6 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -941,13 +941,10 @@ var treectl = (function () { else { var wraph = parseInt(getComputedStyle(ebi('wrap').offsetParent).height), top = Math.max(0, parseInt(wrap.offsetTop)), - treeh = winh - atop; - - if (treeh < 10) - return; + treeh = (winh - atop) - 4; tree.style.top = top + 'px'; - tree.style.height = treeh + 'px'; + tree.style.height = treeh < 10 ? '' : treeh + 'px'; } }