Skip to content
Snippets Groups Projects
Commit 449eab87 authored by Simon Edwards's avatar Simon Edwards Committed by Marijn Haverbeke
Browse files

Make line height calculations more tolerant of browser rounding errors

parent f1319c8d
No related branches found
No related tags found
Loading
......@@ -21,7 +21,7 @@ export function updateHeightsInViewport(cm) {
}
let diff = cur.line.height - height
if (height < 2) height = textHeight(display)
if (diff > .001 || diff < -.001) {
if (diff > .005 || diff < -.005) {
updateLineHeight(cur.line, height)
updateWidgetHeight(cur.line)
if (cur.rest) for (let j = 0; j < cur.rest.length; j++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment