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

Function DisplayUpdate

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

Source from the content-addressed store, hash-verified

4003 // DISPLAY DRAWING
4004
4005 var DisplayUpdate = function(cm, viewport, force) {
4006 var display = cm.display;
4007
4008 this.viewport = viewport;
4009 // Store some values that we'll need later (but don't want to force a relayout for)
4010 this.visible = visibleLines(display, cm.doc, viewport);
4011 this.editorIsHidden = !display.wrapper.offsetWidth;
4012 this.wrapperHeight = display.wrapper.clientHeight;
4013 this.wrapperWidth = display.wrapper.clientWidth;
4014 this.oldDisplayWidth = displayWidth(cm);
4015 this.force = force;
4016 this.dims = getDimensions(cm);
4017 this.events = [];
4018 };
4019
4020 DisplayUpdate.prototype.signal = function (emitter, type) {
4021 if (hasHandler(emitter, type))

Callers

nothing calls this directly

Calls 3

visibleLinesFunction · 0.85
displayWidthFunction · 0.85
getDimensionsFunction · 0.85

Tested by

no test coverage detected