From 3ff244f7a046af0916d6cdc4186a4fc4602741ad Mon Sep 17 00:00:00 2001 From: Guilherme Goncalves Date: Fri, 12 Feb 2021 16:28:19 -0300 Subject: [PATCH] Update lines with zero height on sidediv Avoid evaluation of `0` height as false within `if` condition, since it is possible having 0px as line-height. --- src/static/js/ace2_inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index 72fb9400f..a11c489b5 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -3858,7 +3858,7 @@ function Ace2Inner() { // Apply height to existing sidediv lines currentLine = 0; while (sidebarLine && currentLine <= lineNumbersShown) { - if (lineHeights[currentLine]) { + if (lineHeights[currentLine] != null) { sidebarLine.style.height = `${lineHeights[currentLine]}px`; } sidebarLine = sidebarLine.nextSibling;