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

Function wrappingChanged

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

Source from the content-addressed store, hash-verified

10760 }
10761
10762 function wrappingChanged(cm) {
10763 if (cm.options.lineWrapping) {
10764 addClass(cm.display.wrapper, "CodeMirror-wrap")
10765 cm.display.sizer.style.minWidth = ""
10766 cm.display.sizerWidth = null
10767 } else {
10768 rmClass(cm.display.wrapper, "CodeMirror-wrap")
10769 findMaxLine(cm)
10770 }
10771 estimateLineHeights(cm)
10772 regChange(cm)
10773 clearCaches(cm)
10774 setTimeout(function () {
10775 return updateScrollbars(cm)
10776 }, 100)
10777 }
10778
10779 // A CodeMirror instance represents an editor. This is the object
10780 // 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