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

Function adjustScrollWhenAboveVisible

static/mergely/lib/codemirror.js:6644–6647  ·  view source on GitHub ↗
(cm, line, diff)

Source from the content-addressed store, hash-verified

6642 eventMixin(LineWidget);
6643
6644 function adjustScrollWhenAboveVisible(cm, line, diff) {
6645 if (heightAtLine(line) < ((cm.curOp && cm.curOp.scrollTop) || cm.doc.scrollTop))
6646 addToScrollPos(cm, null, diff);
6647 }
6648
6649 LineWidget.prototype.clear = function() {
6650 var cm = this.doc.cm, ws = this.line.widgets, line = this.line, no = lineNo(line);

Callers 1

codemirror.jsFile · 0.70

Calls 2

heightAtLineFunction · 0.70
addToScrollPosFunction · 0.70

Tested by

no test coverage detected