(cm)
| 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 |
nothing calls this directly
no test coverage detected