(display)
| 2299 | function paddingTop(display) {return display.lineSpace.offsetTop} |
| 2300 | function paddingVert(display) {return display.mover.offsetHeight - display.lineSpace.offsetHeight} |
| 2301 | function paddingH(display) { |
| 2302 | if (display.cachedPaddingH) { return display.cachedPaddingH } |
| 2303 | var e = removeChildrenAndAdd(display.measure, elt("pre", "x", "CodeMirror-line-like")); |
| 2304 | var style = window.getComputedStyle ? window.getComputedStyle(e) : e.currentStyle; |
| 2305 | var data = {left: parseInt(style.paddingLeft), right: parseInt(style.paddingRight)}; |
| 2306 | if (!isNaN(data.left) && !isNaN(data.right)) { display.cachedPaddingH = data; } |
| 2307 | return data |
| 2308 | } |
| 2309 | |
| 2310 | function scrollGap(cm) { return scrollerGap - cm.display.nativeBarWidth } |
| 2311 | function displayWidth(cm) { |
no test coverage detected