MCPcopy Create free account
hub / github.com/TruthHun/BookStack / updateLineHeight

Function updateLineHeight

static/editor.md/lib/codemirror/lib/codemirror.js:7565–7568  ·  view source on GitHub ↗
(line, height)

Source from the content-addressed store, hash-verified

7563 // Update the height of a line, propagating the height change
7564 // upwards to parent nodes.
7565 function updateLineHeight(line, height) {
7566 var diff = height - line.height;
7567 if (diff) for (var n = line; n; n = n.parent) n.height += diff;
7568 }
7569
7570 // Given a line object, find its line number by walking up through
7571 // its parent links.

Callers 6

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

Calls

no outgoing calls

Tested by

no test coverage detected