MCPcopy
hub / github.com/DHTMLX/gantt / updateLineHeight

Function updateLineHeight

samples/common/codehighlight/codemirror.js:927–930  ·  view source on GitHub ↗
(line, height)

Source from the content-addressed store, hash-verified

925 // Update the height of a line, propagating the height change
926 // upwards to parent nodes.
927 function updateLineHeight(line, height) {
928 var diff = height - line.height;
929 if (diff) { for (var n = line; n; n = n.parent) { n.height += diff; } }
930 }
931
932 // Given a line object, find its line number by walking up through
933 // its parent links.

Callers 6

updateLineFunction · 0.85
estimateLineHeightsFunction · 0.85
updateHeightsInViewportFunction · 0.85
codemirror.jsFile · 0.85
addLineWidgetFunction · 0.85
markTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected