MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / updateDisplaySimple

Function updateDisplaySimple

static/libs/codemirror.js:4269–4280  ·  view source on GitHub ↗
(cm, viewport)

Source from the content-addressed store, hash-verified

4267}
4268
4269function updateDisplaySimple(cm, viewport) {
4270 var update = new DisplayUpdate(cm, viewport);
4271 if (updateDisplayIfNeeded(cm, update)) {
4272 updateHeightsInViewport(cm);
4273 postUpdateDisplay(cm, update);
4274 var barMeasure = measureForScrollbars(cm);
4275 updateSelection(cm);
4276 updateScrollbars(cm, barMeasure);
4277 setDocumentHeight(cm, barMeasure);
4278 update.finish();
4279 }
4280}
4281
4282// Sync the actual display DOM structure with display.view, removing
4283// 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