(cm, measure)
| 539 | // Re-synchronize the fake scrollbars with the actual size of the |
| 540 | // content. |
| 541 | function updateScrollbarsInner(cm, measure) { |
| 542 | var d = cm.display; |
| 543 | var sizes = d.scrollbars.update(measure); |
| 544 | |
| 545 | d.sizer.style.paddingRight = (d.barWidth = sizes.right) + "px"; |
| 546 | d.sizer.style.paddingBottom = (d.barHeight = sizes.bottom) + "px"; |
| 547 | d.heightForcer.style.borderBottom = sizes.bottom + "px solid transparent" |
| 548 | |
| 549 | if (sizes.right && sizes.bottom) { |
| 550 | d.scrollbarFiller.style.display = "block"; |
| 551 | d.scrollbarFiller.style.height = sizes.bottom + "px"; |
| 552 | d.scrollbarFiller.style.width = sizes.right + "px"; |
| 553 | } else d.scrollbarFiller.style.display = ""; |
| 554 | if (sizes.bottom && cm.options.coverGutterNextToScrollbar && cm.options.fixedGutter) { |
| 555 | d.gutterFiller.style.display = "block"; |
| 556 | d.gutterFiller.style.height = sizes.bottom + "px"; |
| 557 | d.gutterFiller.style.width = measure.gutterWidth + "px"; |
| 558 | } else d.gutterFiller.style.display = ""; |
| 559 | } |
| 560 | |
| 561 | // Compute the lines that are visible in a given viewport (defaults |
| 562 | // the the current scroll position). viewport may contain top, |
no test coverage detected