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

Function wrappingChanged

tools/pythonauto/static/codemirror/codemirror.js:217–229  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

215 }
216
217 function wrappingChanged(cm) {
218 if (cm.options.lineWrapping) {
219 cm.display.wrapper.className += " CodeMirror-wrap";
220 cm.display.sizer.style.minWidth = "";
221 } else {
222 cm.display.wrapper.className = cm.display.wrapper.className.replace(" CodeMirror-wrap", "");
223 computeMaxLength(cm);
224 }
225 estimateLineHeights(cm);
226 regChange(cm);
227 clearCaches(cm);
228 setTimeout(function(){updateScrollbars(cm);}, 100);
229 }
230
231 function estimateHeight(cm) {
232 var th = textHeight(cm.display), wrapping = cm.options.lineWrapping;

Callers

nothing calls this directly

Calls 5

computeMaxLengthFunction · 0.70
estimateLineHeightsFunction · 0.70
regChangeFunction · 0.70
clearCachesFunction · 0.70
updateScrollbarsFunction · 0.70

Tested by

no test coverage detected