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