fix(viewport): account for fallback scrollbar width

This commit is contained in:
metonym
2021-10-22 09:49:01 -07:00
parent 1a697bd844
commit 9b1eec8ade
+1 -1
View File
@@ -116,7 +116,7 @@ export class Viewport extends Disposable implements IViewport {
}
this._lastHadScrollBar = this.scrollBarWidth > 0;
this._viewportElement.style.width = (this._renderService.dimensions.actualCellWidth * (this._bufferService.cols) + this.scrollBarWidth).toString() + 'px';
this._viewportElement.style.width = (this._renderService.dimensions.actualCellWidth * (this._bufferService.cols) + this.scrollBarWidth + (this._lastHadScrollBar ? FALLBACK_SCROLL_BAR_WIDTH : 0)).toString() + 'px';
this._refreshAnimationFrame = null;
}