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;