MCPcopy Create free account
hub / github.com/TruthHun/BookStack / resetView

Function resetView

static/editor.md/lib/codemirror/lib/codemirror.js:3211–3215  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

3209
3210 // Clear the view.
3211 function resetView(cm) {
3212 cm.display.viewFrom = cm.display.viewTo = cm.doc.first;
3213 cm.display.view = [];
3214 cm.display.viewOffset = 0;
3215 }
3216
3217 // Find the view element corresponding to a given line. Return null
3218 // when the line isn't visible.

Callers 2

updateDisplayIfNeededFunction · 0.70
regChangeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected