(display)
| 2367 | function paddingTop(display) {return display.lineSpace.offsetTop} |
| 2368 | function paddingVert(display) {return display.mover.offsetHeight - display.lineSpace.offsetHeight} |
| 2369 | function paddingH(display) { |
| 2370 | if (display.cachedPaddingH) { return display.cachedPaddingH } |
| 2371 | var e = removeChildrenAndAdd(display.measure, elt("pre", "x")); |
| 2372 | var style = window.getComputedStyle ? window.getComputedStyle(e) : e.currentStyle; |
| 2373 | var data = {left: parseInt(style.paddingLeft), right: parseInt(style.paddingRight)}; |
| 2374 | if (!isNaN(data.left) && !isNaN(data.right)) { display.cachedPaddingH = data; } |
| 2375 | return data |
| 2376 | } |
| 2377 | |
| 2378 | function scrollGap(cm) { return scrollerGap - cm.display.nativeBarWidth } |
| 2379 | function displayWidth(cm) { |
no test coverage detected