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

Function updateWidgetHeight

static/editor.md/lib/codemirror/lib/codemirror.js:807–810  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

805 // Read and store the height of line widgets associated with the
806 // given line.
807 function updateWidgetHeight(line) {
808 if (line.widgets) for (var i = 0; i < line.widgets.length; ++i)
809 line.widgets[i].height = line.widgets[i].node.offsetHeight;
810 }
811
812 // Do a bulk-read of the DOM positions and sizes needed to draw the
813 // 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