Commit 7e5fdfd
committed
Ignore zero rectangles in measureTextSize
FIX: Avoid computing a zero character width (leading to divisions by zero)
when the editor is hidden and the browser doesn't have a layout for it.
Closes codemirror/dev#1642
Closes #751 parent b08ca13 commit 7e5fdfd
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | | - | |
460 | | - | |
| 459 | + | |
| 460 | + | |
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| |||
0 commit comments