Undo CiruclarList id changes, fix null check, lint

This commit is contained in:
Daniel Imms
2017-06-06 22:59:16 -07:00
parent ec3bf1139d
commit 7147787441
4 changed files with 21 additions and 47 deletions
+6 -2
View File
@@ -365,11 +365,15 @@ export class Renderer {
this._terminal.selectionContainer.appendChild(documentFragment);
}
/**
* Creates a selection element at the specified position.
* @param row The row of the selection.
* @param colStart The start column.
* @param colEnd The end columns.
*/
private _createSelectionElement(row: number, colStart: number, colEnd: number): HTMLElement {
const element = document.createElement('div');
// TODO: Move into a generated <style> element
element.style.height = `${this._terminal.charMeasure.height}px`;
element.style.top = `${row * this._terminal.charMeasure.height}px`;
element.style.left = `${colStart * this._terminal.charMeasure.width}px`;
element.style.width = `${this._terminal.charMeasure.width * (colEnd - colStart)}px`;