MCPcopy
hub / github.com/witheve/Eve / updateWidgetHeight

Function updateWidgetHeight

src/codemirror.js:826–829  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

824 // Read and store the height of line widgets associated with the
825 // given line.
826 function updateWidgetHeight(line) {
827 if (line.widgets) for (var i = 0; i < line.widgets.length; ++i)
828 line.widgets[i].height = line.widgets[i].node.parentNode.offsetHeight;
829 }
830
831 // Do a bulk-read of the DOM positions and sizes needed to draw the
832 // view, so that we don't interleave reading and writing to the DOM.

Callers 1

updateHeightsInViewportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected