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

Function estimateLineHeights

static/mergely/lib/codemirror.js:290–296  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

288 }
289
290 function estimateLineHeights(cm) {
291 var doc = cm.doc, est = estimateHeight(cm);
292 doc.iter(function(line) {
293 var estHeight = est(line);
294 if (estHeight != line.height) updateLineHeight(line, estHeight);
295 });
296 }
297
298 function themeChanged(cm) {
299 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