Remove unused CSS, selectionElement

This commit is contained in:
Daniel Imms
2017-09-02 13:34:01 -07:00
parent 24a98f2fa8
commit 8039fd35e6
4 changed files with 5 additions and 2172 deletions
-1
View File
@@ -19,7 +19,6 @@ export interface IBrowser {
export interface ITerminal extends IEventEmitter {
element: HTMLElement;
selectionContainer: HTMLElement;
selectionManager: ISelectionManager;
charMeasure: ICharMeasure;
textarea: HTMLTextAreaElement;
-6
View File
@@ -97,7 +97,6 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
private body: HTMLBodyElement;
private viewportScrollArea: HTMLElement;
private viewportElement: HTMLElement;
public selectionContainer: HTMLElement;
private helperContainer: HTMLElement;
private compositionView: HTMLElement;
private charSizeStyleElement: HTMLStyleElement;
@@ -574,11 +573,6 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
// preload audio
this.syncBellSound();
// Create the selection container.
this.selectionContainer = document.createElement('div');
this.selectionContainer.classList.add('xterm-selection');
this.element.appendChild(this.selectionContainer);
// TODO: Re-enable linkifier
// this.linkifier.attachToDom(document, this.children);
-1
View File
@@ -57,7 +57,6 @@ export class Viewport implements IViewport {
if (rowHeightChanged || viewportHeightChanged) {
this.lastRecordedViewportHeight = this.terminal.rows;
this.viewportElement.style.height = lineHeight * this.terminal.rows + 'px';
this.terminal.selectionContainer.style.height = this.viewportElement.style.height;
}
this.scrollArea.style.height = (lineHeight * this.lastRecordedBufferLength) + 'px';
}
+5 -2164
View File
File diff suppressed because it is too large Load Diff