MCPcopy Index your code
hub / github.com/DHTMLX/gantt / wrappingChanged

Function wrappingChanged

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

Source from the content-addressed store, hash-verified

7821 }
7822
7823 function wrappingChanged(cm) {
7824 if (cm.options.lineWrapping) {
7825 addClass(cm.display.wrapper, "CodeMirror-wrap");
7826 cm.display.sizer.style.minWidth = "";
7827 cm.display.sizerWidth = null;
7828 } else {
7829 rmClass(cm.display.wrapper, "CodeMirror-wrap");
7830 findMaxLine(cm);
7831 }
7832 estimateLineHeights(cm);
7833 regChange(cm);
7834 clearCaches(cm);
7835 setTimeout(function () { return updateScrollbars(cm); }, 100);
7836 }
7837
7838 // A CodeMirror instance represents an editor. This is the object
7839 // that user code is usually dealing with.

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected