MCPcopy Index your code
hub / github.com/csev/py4e / add

Function add

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:1341–1346  ·  view source on GitHub ↗
(left, top, right, height)

Source from the content-addressed store, hash-verified

1339 var clientWidth = lineSpace.clientWidth || lineSpace.offsetWidth;
1340 var clientHeight = lineSpace.clientHeight || lineSpace.offsetHeight;
1341 function add(left, top, right, height) {
1342 var rstyle = quirksMode ? "width: " + (!right ? clientWidth : clientWidth - right - left) + "px"
1343 : "right: " + right + "px";
1344 html += '<div class="CodeMirror-selected" style="position: absolute; left: ' + left +
1345 'px; top: ' + top + 'px; ' + rstyle + '; height: ' + height + 'px"></div>';
1346 }
1347 if (sel.from.ch && fromPos.y >= 0) {
1348 var right = sameLine ? clientWidth - toPos.x : 0;
1349 add(fromPos.x, fromPos.y, right, th);

Callers 2

updateSelectionFunction · 0.70
markTextFunction · 0.70

Calls 1

getLineFunction · 0.70

Tested by

no test coverage detected