Force LTR for the terminal element

Issue #1330: This prevents RTL layouts from mishandlin the
intended layout of the terminal container and children.
This commit is contained in:
Felipe Gasper
2018-03-23 19:16:02 -04:00
parent 888070830d
commit e63831febc
+1
View File
@@ -622,6 +622,7 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
// Create main element container
this.element = this._document.createElement('div');
this.element.dir = "ltr"; //xterm.css assumes LTR
this.element.classList.add('terminal');
this.element.classList.add('xterm');
this.element.setAttribute('tabindex', '0');