mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
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.
This commit is contained in:
parent
9c7dcb1d0a
commit
3ff244f7a0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue