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

Function updateWidgetHeight

external/.scrollLibs.js:4739–4749  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

4737 // Read and store the height of line widgets associated with the
4738 // given line.
4739 function updateWidgetHeight(line) {
4740 if (line.widgets) {
4741 for (var i = 0; i < line.widgets.length; ++i) {
4742 var w = line.widgets[i],
4743 parent = w.node.parentNode
4744 if (parent) {
4745 w.height = parent.offsetHeight
4746 }
4747 }
4748 }
4749 }
4750
4751 // Compute the lines that are visible in a given viewport (defaults
4752 // the the current scroll position). viewport may contain top,

Callers 1

updateHeightsInViewportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected