(cm, measure)
| 769 | } |
| 770 | |
| 771 | function setDocumentHeight(cm, measure) { |
| 772 | cm.display.sizer.style.minHeight = measure.docHeight + "px"; |
| 773 | var total = measure.docHeight + cm.display.barHeight; |
| 774 | cm.display.heightForcer.style.top = total + "px"; |
| 775 | cm.display.gutters.style.height = Math.max(total + scrollGap(cm), measure.clientHeight) + "px"; |
| 776 | } |
| 777 | |
| 778 | // Read the actual heights of the rendered lines, and update their |
| 779 | // stored heights to match. |
no test coverage detected