MCPcopy Create free account
hub / github.com/sql-js/sql.js / updateLineHeight

Function updateLineHeight

GUI/codemirror/lib/codemirror.js:6513–6516  ·  view source on GitHub ↗
(line, height)

Source from the content-addressed store, hash-verified

6511 // Update the height of a line, propagating the height change
6512 // upwards to parent nodes.
6513 function updateLineHeight(line, height) {
6514 var diff = height - line.height;
6515 if (diff) for (var n = line; n; n = n.parent) n.height += diff;
6516 }
6517
6518 // Given a line object, find its line number by walking up through
6519 // its parent links.

Callers 6

estimateLineHeightsFunction · 0.85
updateHeightsInViewportFunction · 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…