MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / wrappingChanged

Function wrappingChanged

lib/web/CodeMirror/src/edit/options.js:181–194  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

179}
180
181function wrappingChanged(cm) {
182 if (cm.options.lineWrapping) {
183 addClass(cm.display.wrapper, "CodeMirror-wrap")
184 cm.display.sizer.style.minWidth = ""
185 cm.display.sizerWidth = null
186 } else {
187 rmClass(cm.display.wrapper, "CodeMirror-wrap")
188 findMaxLine(cm)
189 }
190 estimateLineHeights(cm)
191 regChange(cm)
192 clearCaches(cm)
193 setTimeout(() => updateScrollbars(cm), 100)
194}

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected