(display)
| 1454 | function paddingTop(display) {return display.lineSpace.offsetTop;} |
| 1455 | function paddingVert(display) {return display.mover.offsetHeight - display.lineSpace.offsetHeight;} |
| 1456 | function paddingH(display) { |
| 1457 | if (display.cachedPaddingH) return display.cachedPaddingH; |
| 1458 | var e = removeChildrenAndAdd(display.measure, elt("pre", "x")); |
| 1459 | var style = window.getComputedStyle ? window.getComputedStyle(e) : e.currentStyle; |
| 1460 | var data = {left: parseInt(style.paddingLeft), right: parseInt(style.paddingRight)}; |
| 1461 | if (!isNaN(data.left) && !isNaN(data.right)) display.cachedPaddingH = data; |
| 1462 | return data; |
| 1463 | } |
| 1464 | |
| 1465 | // Ensure the lineView.wrapping.heights array is populated. This is |
| 1466 | // an array of bottom offsets for the lines that make up a drawn |
no test coverage detected
searching dependent graphs…