MCPcopy Index your code
hub / github.com/csev/py4e / wrappingChanged

Function wrappingChanged

tools/pythonauto/static/codemirrorepl/codemirror.js:256–268  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

254 }
255
256 function wrappingChanged(cm) {
257 if (cm.options.lineWrapping) {
258 addClass(cm.display.wrapper, "CodeMirror-wrap");
259 cm.display.sizer.style.minWidth = "";
260 } else {
261 rmClass(cm.display.wrapper, "CodeMirror-wrap");
262 findMaxLine(cm);
263 }
264 estimateLineHeights(cm);
265 regChange(cm);
266 clearCaches(cm);
267 setTimeout(function(){updateScrollbars(cm);}, 100);
268 }
269
270 // Returns a function that estimates the height of a line, to use as
271 // 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.70
regChangeFunction · 0.70
clearCachesFunction · 0.70
updateScrollbarsFunction · 0.70

Tested by

no test coverage detected