Skip to content

Commit 28fe151

Browse files
committed
Remove kludge in line height measuring
Which was introduced in 6ac8c13, for unclear reasons Issue codemirror#5755
1 parent 39b67d6 commit 28fe151

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/display/update_lines.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export function updateHeightsInViewport(cm) {
2525
width = cur.text.firstChild.getBoundingClientRect().right - box.left - 1
2626
}
2727
let diff = cur.line.height - height
28-
if (height < 2) height = textHeight(display)
2928
if (diff > .005 || diff < -.005) {
3029
updateLineHeight(cur.line, height)
3130
updateWidgetHeight(cur.line)

0 commit comments

Comments
 (0)