MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / updateLineHeight

Function updateLineHeight

static/js/codemirror/codemirror.js:4588–4591  ·  view source on GitHub ↗
(line, height)

Source from the content-addressed store, hash-verified

4586 }
4587
4588 function updateLineHeight(line, height) {
4589 var diff = height - line.height;
4590 for (var n = line; n; n = n.parent) n.height += diff;
4591 }
4592
4593 function lineNo(line) {
4594 if (line.parent == null) return null;

Callers 7

estimateLineHeightsFunction · 0.85
updateDisplayInnerFunction · 0.85
patchDisplayFunction · 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