MCPcopy Create free account
hub / github.com/breck7/scroll / updateLineHeight

Function updateLineHeight

external/.scrollLibs.js:1016–1023  ·  view source on GitHub ↗
(line, height)

Source from the content-addressed store, hash-verified

1014 // Update the height of a line, propagating the height change
1015 // upwards to parent nodes.
1016 function updateLineHeight(line, height) {
1017 var diff = height - line.height
1018 if (diff) {
1019 for (var n = line; n; n = n.parent) {
1020 n.height += diff
1021 }
1022 }
1023 }
1024
1025 // Given a line object, find its line number by walking up through
1026 // its parent links.

Callers 6

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

Calls

no outgoing calls

Tested by

no test coverage detected