MCPcopy Index your code
hub / github.com/DHTMLX/gantt / add

Function add

samples/common/codehighlight/codemirror.js:3187–3192  ·  view source on GitHub ↗
(left, top, width, bottom)

Source from the content-addressed store, hash-verified

3185 var docLTR = doc.direction == "ltr";
3186
3187 function add(left, top, width, bottom) {
3188 if (top < 0) { top = 0; }
3189 top = Math.round(top);
3190 bottom = Math.round(bottom);
3191 fragment.appendChild(elt("div", null, "CodeMirror-selected", ("position: absolute; left: " + left + "px;\n top: " + top + "px; width: " + (width == null ? rightSide - left : width) + "px;\n height: " + (bottom - top) + "px")));
3192 }
3193
3194 function drawForLine(line, fromArg, toArg) {
3195 var lineObj = getLine(doc, line);

Callers 2

drawForLineFunction · 0.70
drawSelectionRangeFunction · 0.70

Calls 1

eltFunction · 0.85

Tested by

no test coverage detected