MCPcopy Index your code
hub / github.com/DHTMLX/gantt / updateDisplaySimple

Function updateDisplaySimple

samples/common/codehighlight/codemirror.js:4178–4189  ·  view source on GitHub ↗
(cm, viewport)

Source from the content-addressed store, hash-verified

4176 }
4177
4178 function updateDisplaySimple(cm, viewport) {
4179 var update = new DisplayUpdate(cm, viewport);
4180 if (updateDisplayIfNeeded(cm, update)) {
4181 updateHeightsInViewport(cm);
4182 postUpdateDisplay(cm, update);
4183 var barMeasure = measureForScrollbars(cm);
4184 updateSelection(cm);
4185 updateScrollbars(cm, barMeasure);
4186 setDocumentHeight(cm, barMeasure);
4187 update.finish();
4188 }
4189 }
4190
4191 // Sync the actual display DOM structure with display.view, removing
4192 // 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