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

Function estimateLineHeights

src/codemirror.js:291–297  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

289 }
290
291 function estimateLineHeights(cm) {
292 var doc = cm.doc, est = estimateHeight(cm);
293 doc.iter(function(line) {
294 var estHeight = est(line);
295 if (estHeight != line.height) updateLineHeight(line, estHeight);
296 });
297 }
298
299 function themeChanged(cm) {
300 cm.display.wrapper.className = cm.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") +

Callers 3

wrappingChangedFunction · 0.85
codemirror.jsFile · 0.85
attachDocFunction · 0.85

Calls 2

estimateHeightFunction · 0.85
updateLineHeightFunction · 0.85

Tested by

no test coverage detected