(left, top, right, height)
| 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); |
no test coverage detected