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

Function updateLineHeight

static/mergely/lib/codemirror.js:7796–7799  ·  view source on GitHub ↗
(line, height)

Source from the content-addressed store, hash-verified

7794 // Update the height of a line, propagating the height change
7795 // upwards to parent nodes.
7796 function updateLineHeight(line, height) {
7797 var diff = height - line.height;
7798 if (diff) for (var n = line; n; n = n.parent) n.height += diff;
7799 }
7800
7801 // Given a line object, find its line number by walking up through
7802 // 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