MCPcopy Create free account
hub / github.com/TruthHun/BookStack / updateWidgetHeight

Function updateWidgetHeight

static/mergely/lib/codemirror.js:824–827  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

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

Callers 1

updateHeightsInViewportFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected