(cm)
| 202 | } |
| 203 | |
| 204 | function wrappingChanged(cm) { |
| 205 | if (cm.options.lineWrapping) { |
| 206 | cm.display.wrapper.className += " CodeMirror-wrap"; |
| 207 | cm.display.sizer.style.minWidth = ""; |
| 208 | } else { |
| 209 | cm.display.wrapper.className = cm.display.wrapper.className.replace(" CodeMirror-wrap", ""); |
| 210 | computeMaxLength(cm); |
| 211 | } |
| 212 | estimateLineHeights(cm); |
| 213 | regChange(cm); |
| 214 | clearCaches(cm); |
| 215 | setTimeout(function(){updateScrollbars(cm.display, cm.doc.height);}, 100); |
| 216 | } |
| 217 | |
| 218 | function estimateHeight(cm) { |
| 219 | var th = textHeight(cm.display), wrapping = cm.options.lineWrapping; |
nothing calls this directly
no test coverage detected