MCPcopy Create free account
hub / github.com/sql-js/sql.js / adjustScrollWhenAboveVisible

Function adjustScrollWhenAboveVisible

GUI/codemirror/lib/codemirror.js:5478–5481  ·  view source on GitHub ↗
(cm, line, diff)

Source from the content-addressed store, hash-verified

5476 eventMixin(LineWidget);
5477
5478 function adjustScrollWhenAboveVisible(cm, line, diff) {
5479 if (heightAtLine(line) < ((cm.curOp && cm.curOp.scrollTop) || cm.doc.scrollTop))
5480 addToScrollPos(cm, null, diff);
5481 }
5482
5483 LineWidget.prototype.clear = function() {
5484 var cm = this.cm, ws = this.line.widgets, line = this.line, no = lineNo(line);

Callers 1

codemirror.jsFile · 0.85

Calls 2

heightAtLineFunction · 0.85
addToScrollPosFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…