MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / updateDisplaySimple

Function updateDisplaySimple

static/plugins/codemirror/codemirror.js:4210–4221  ·  view source on GitHub ↗
(cm, viewport)

Source from the content-addressed store, hash-verified

4208 }
4209
4210 function updateDisplaySimple(cm, viewport) {
4211 var update = new DisplayUpdate(cm, viewport);
4212 if (updateDisplayIfNeeded(cm, update)) {
4213 updateHeightsInViewport(cm);
4214 postUpdateDisplay(cm, update);
4215 var barMeasure = measureForScrollbars(cm);
4216 updateSelection(cm);
4217 updateScrollbars(cm, barMeasure);
4218 setDocumentHeight(cm, barMeasure);
4219 update.finish();
4220 }
4221 }
4222
4223 // Sync the actual display DOM structure with display.view, removing
4224 // 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