MCPcopy Create free account
hub / github.com/DHTMLX/gantt / adjustScrollWhenAboveVisible

Function adjustScrollWhenAboveVisible

samples/common/codehighlight/codemirror.js:5766–5769  ·  view source on GitHub ↗
(cm, line, diff)

Source from the content-addressed store, hash-verified

5764 eventMixin(LineWidget);
5765
5766 function adjustScrollWhenAboveVisible(cm, line, diff) {
5767 if (heightAtLine(line) < ((cm.curOp && cm.curOp.scrollTop) || cm.doc.scrollTop))
5768 { addToScrollTop(cm, diff); }
5769 }
5770
5771 function addLineWidget(doc, handle, node, options) {
5772 var widget = new LineWidget(doc, node, options);

Callers 1

codemirror.jsFile · 0.85

Calls 2

heightAtLineFunction · 0.85
addToScrollTopFunction · 0.85

Tested by

no test coverage detected