Merge pull request #1288 from dgriffen/dev/dgriffen/fix-scrollbar

fix terminal width calculation
This commit is contained in:
Daniel Imms
2018-02-24 11:56:35 -08:00
committed by GitHub
+1 -1
View File
@@ -121,7 +121,7 @@ export class Renderer extends EventEmitter implements IRenderer {
}
// Resize the screen
this._terminal.screenElement.style.width = `${this.dimensions.canvasWidth + this._terminal.viewport.scrollBarWidth}px`;
this._terminal.screenElement.style.width = `${this.dimensions.canvasWidth}px`;
this._terminal.screenElement.style.height = `${this.dimensions.canvasHeight}px`;
this.emit('resize', {