MCPcopy
hub / github.com/csev/py4e / updateLineHeight

Function updateLineHeight

tools/pythonauto/static/codemirrorepl/codemirror.js:6463–6466  ·  view source on GitHub ↗
(line, height)

Source from the content-addressed store, hash-verified

6461 // Update the height of a line, propagating the height change
6462 // upwards to parent nodes.
6463 function updateLineHeight(line, height) {
6464 var diff = height - line.height;
6465 if (diff) for (var n = line; n; n = n.parent) n.height += diff;
6466 }
6467
6468 // Given a line object, find its line number by walking up through
6469 // 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