MCPcopy Index your code
hub / github.com/witheve/Eve / wrappingChanged

Function wrappingChanged

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

Source from the content-addressed store, hash-verified

253 }
254
255 function wrappingChanged(cm) {
256 if (cm.options.lineWrapping) {
257 addClass(cm.display.wrapper, "CodeMirror-wrap");
258 cm.display.sizer.style.minWidth = "";
259 cm.display.sizerWidth = null;
260 } else {
261 rmClass(cm.display.wrapper, "CodeMirror-wrap");
262 findMaxLine(cm);
263 }
264 estimateLineHeights(cm);
265 regChange(cm);
266 clearCaches(cm);
267 setTimeout(function(){updateScrollbars(cm);}, 100);
268 }
269
270 // Returns a function that estimates the height of a line, to use as
271 // first approximation until the line becomes visible (and is thus

Callers

nothing calls this directly

Calls 5

findMaxLineFunction · 0.85
estimateLineHeightsFunction · 0.85
regChangeFunction · 0.85
clearCachesFunction · 0.85
updateScrollbarsFunction · 0.85

Tested by

no test coverage detected