From 7237364ba57ebc12a3359ba5d3f8e5a5c4362e4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Tue, 11 Feb 2025 12:03:47 +0100 Subject: [PATCH] =?UTF-8?q?Hotfix:=20chyb=C4=9Bj=C3=ADc=C3=AD=20mezery=20z?= =?UTF-8?q?a=20korekturami?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- korektury/static/korektury/opraf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korektury/static/korektury/opraf.js b/korektury/static/korektury/opraf.js index 5677deff..3963c49c 100644 --- a/korektury/static/korektury/opraf.js +++ b/korektury/static/korektury/opraf.js @@ -31,7 +31,7 @@ function place_comments_one_div(img_id, comments) htmlElement.style.left = w + W_SKIP; htmlElement.style.top = y + delta_y; - bott_max = Math.max(bott_max, htmlElement.offsetTop + htmlElement.offsetHeight); + bott_max = Math.max(bott_max, htmlElement.offsetTop + htmlElement.offsetHeight + H_SKIP); // FIXME nemám páru, proč +H_SKIP funguje, ale opravuje to bug, že nově vytvořené korektury za sebou neměly mezeru } if (par.offsetHeight < bott_max) par.style.height = bott_max;