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

Function resetView

samples/common/codehighlight/codemirror.js:3071–3075  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

3069
3070 // Clear the view.
3071 function resetView(cm) {
3072 cm.display.viewFrom = cm.display.viewTo = cm.doc.first;
3073 cm.display.view = [];
3074 cm.display.viewOffset = 0;
3075 }
3076
3077 function viewCuttingPoint(cm, oldN, newN, dir) {
3078 var index = findViewIndex(cm, oldN), diff, view = cm.display.view;

Callers 2

regChangeFunction · 0.85
updateDisplayIfNeededFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected