MCPcopy
hub / github.com/witheve/Eve / updateLineHeight

Function updateLineHeight

src/codemirror.js:7828–7831  ·  view source on GitHub ↗
(line, height)

Source from the content-addressed store, hash-verified

7826 // Update the height of a line, propagating the height change
7827 // upwards to parent nodes.
7828 function updateLineHeight(line, height) {
7829 var diff = height - line.height;
7830 if (diff) for (var n = line; n; n = n.parent) n.height += diff;
7831 }
7832
7833 // Given a line object, find its line number by walking up through
7834 // its parent links.

Callers 6

estimateLineHeightsFunction · 0.85
updateHeightsInViewportFunction · 0.85
codemirror.jsFile · 0.85
markTextFunction · 0.85
addLineWidgetFunction · 0.85
updateLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected