MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / wrappingChanged

Function wrappingChanged

static/libs/codemirror.js:7750–7763  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

7748}
7749
7750function wrappingChanged(cm) {
7751 if (cm.options.lineWrapping) {
7752 addClass(cm.display.wrapper, "CodeMirror-wrap");
7753 cm.display.sizer.style.minWidth = "";
7754 cm.display.sizerWidth = null;
7755 } else {
7756 rmClass(cm.display.wrapper, "CodeMirror-wrap");
7757 findMaxLine(cm);
7758 }
7759 estimateLineHeights(cm);
7760 regChange(cm);
7761 clearCaches(cm);
7762 setTimeout(function () { return updateScrollbars(cm); }, 100);
7763}
7764
7765// A CodeMirror instance represents an editor. This is the object
7766// that user code is usually dealing with.

Callers

nothing calls this directly

Calls 8

addClassFunction · 0.85
rmClassFunction · 0.85
findMaxLineFunction · 0.85
estimateLineHeightsFunction · 0.85
regChangeFunction · 0.85
clearCachesFunction · 0.85
setTimeoutFunction · 0.85
updateScrollbarsFunction · 0.85

Tested by

no test coverage detected