MCPcopy
hub / github.com/DHTMLX/gantt / estimateLineHeights

Function estimateLineHeights

samples/common/codehighlight/codemirror.js:2944–2950  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

2942 }
2943
2944 function estimateLineHeights(cm) {
2945 var doc = cm.doc, est = estimateHeight(cm);
2946 doc.iter(function (line) {
2947 var estHeight = est(line);
2948 if (estHeight != line.height) { updateLineHeight(line, estHeight); }
2949 });
2950 }
2951
2952 // Given a mouse event, find the corresponding position. If liberal
2953 // 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