MCPcopy
hub / github.com/hokein/electron-sample-apps / updateLineHeight

Function updateLineHeight

mini-code-editor/cm/lib/codemirror.js:335–339  ·  view source on GitHub ↗
(line, height)

Source from the content-addressed store, hash-verified

333
334 function getLine(n) { return getLineAt(doc, n); }
335 function updateLineHeight(line, height) {
336 gutterDirty = true;
337 var diff = height - line.height;
338 for (var n = line; n; n = n.parent) n.height += diff;
339 }
340
341 function setValue(code) {
342 var top = {line: 0, ch: 0};

Callers 4

updateLinesNoUndoFunction · 0.85
checkHeightsFunction · 0.85
wrappingChangedFunction · 0.85
setLineHiddenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected