MCPcopy
hub / github.com/HubSpot/messenger / add

Function add

docs/welcome/lib/executr/lib/CodeMirror/codemirror.js:720–725  ·  view source on GitHub ↗
(left, top, width, bottom)

Source from the content-addressed store, hash-verified

718 var clientWidth = display.lineSpace.offsetWidth, pl = paddingLeft(cm.display);
719
720 function add(left, top, width, bottom) {
721 if (top < 0) top = 0;
722 fragment.appendChild(elt("div", null, "CodeMirror-selected", "position: absolute; left: " + left +
723 "px; top: " + top + "px; width: " + (width == null ? clientWidth - left : width) +
724 "px; height: " + (bottom - top) + "px"));
725 }
726
727 function drawForLine(line, fromArg, toArg, retTop) {
728 var lineObj = getLine(doc, line);

Callers 2

drawForLineFunction · 0.70
updateSelectionRangeFunction · 0.70

Calls 1

eltFunction · 0.85

Tested by

no test coverage detected