MCPcopy Create free account
hub / github.com/breck7/scroll / updateDisplaySimple

Function updateDisplaySimple

external/.scrollLibs.js:6024–6035  ·  view source on GitHub ↗
(cm, viewport)

Source from the content-addressed store, hash-verified

6022 }
6023
6024 function updateDisplaySimple(cm, viewport) {
6025 var update = new DisplayUpdate(cm, viewport)
6026 if (updateDisplayIfNeeded(cm, update)) {
6027 updateHeightsInViewport(cm)
6028 postUpdateDisplay(cm, update)
6029 var barMeasure = measureForScrollbars(cm)
6030 updateSelection(cm)
6031 updateScrollbars(cm, barMeasure)
6032 setDocumentHeight(cm, barMeasure)
6033 update.finish()
6034 }
6035 }
6036
6037 // Sync the actual display DOM structure with display.view, removing
6038 // nodes for lines that are no longer in view, and creating the ones

Callers 2

updateScrollTopFunction · 0.85
onScrollWheelFunction · 0.85

Calls 7

updateDisplayIfNeededFunction · 0.85
updateHeightsInViewportFunction · 0.85
postUpdateDisplayFunction · 0.85
measureForScrollbarsFunction · 0.85
updateSelectionFunction · 0.85
updateScrollbarsFunction · 0.85
setDocumentHeightFunction · 0.85

Tested by

no test coverage detected