MCPcopy Create free account
hub / github.com/breck7/scroll / estimateLineHeights

Function estimateLineHeights

external/.scrollLibs.js:4375–4384  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

4373 }
4374
4375 function estimateLineHeights(cm) {
4376 var doc = cm.doc,
4377 est = estimateHeight(cm)
4378 doc.iter(function (line) {
4379 var estHeight = est(line)
4380 if (estHeight != line.height) {
4381 updateLineHeight(line, estHeight)
4382 }
4383 })
4384 }
4385
4386 // Given a mouse event, find the corresponding position. If liberal
4387 // is false, it checks whether a gutter or scrollbar was clicked,

Callers 3

attachDocFunction · 0.85
wrappingChangedFunction · 0.85
addEditorMethodsFunction · 0.85

Calls 2

estimateHeightFunction · 0.85
updateLineHeightFunction · 0.85

Tested by

no test coverage detected