MCPcopy Create free account
hub / github.com/sql-js/sql.js / wrappingChanged

Function wrappingChanged

GUI/codemirror/lib/codemirror.js:255–267  ·  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 } else {
260 rmClass(cm.display.wrapper, "CodeMirror-wrap");
261 findMaxLine(cm);
262 }
263 estimateLineHeights(cm);
264 regChange(cm);
265 clearCaches(cm);
266 setTimeout(function(){updateScrollbars(cm);}, 100);
267 }
268
269 // Returns a function that estimates the height of a line, to use as
270 // first approximation until the line becomes visible (and is thus

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…