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

Function estimateLineHeights

static/editor.md/lib/codemirror/lib/codemirror.js:284–290  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

282 }
283
284 function estimateLineHeights(cm) {
285 var doc = cm.doc, est = estimateHeight(cm);
286 doc.iter(function(line) {
287 var estHeight = est(line);
288 if (estHeight != line.height) updateLineHeight(line, estHeight);
289 });
290 }
291
292 function themeChanged(cm) {
293 cm.display.wrapper.className = cm.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") +

Callers 3

wrappingChangedFunction · 0.70
codemirror.jsFile · 0.70
attachDocFunction · 0.70

Calls 2

estimateHeightFunction · 0.70
updateLineHeightFunction · 0.70

Tested by

no test coverage detected