mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04: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
|
// Apply height to existing sidediv lines
|
||||||
currentLine = 0;
|
currentLine = 0;
|
||||||
while (sidebarLine && currentLine <= lineNumbersShown) {
|
while (sidebarLine && currentLine <= lineNumbersShown) {
|
||||||
if (lineHeights[currentLine]) {
|
if (lineHeights[currentLine] != null) {
|
||||||
sidebarLine.style.height = `${lineHeights[currentLine]}px`;
|
sidebarLine.style.height = `${lineHeights[currentLine]}px`;
|
||||||
}
|
}
|
||||||
sidebarLine = sidebarLine.nextSibling;
|
sidebarLine = sidebarLine.nextSibling;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue