chore(viewport): run yarn lint --fix

This commit is contained in:
metonym
2021-10-22 11:28:30 -07:00
parent 7deb01267b
commit ed1aecb251
+1 -1
View File
@@ -116,7 +116,7 @@ export class Viewport extends Disposable implements IViewport {
this.scrollBarWidth = (this._viewportElement.offsetWidth - this._scrollArea.offsetWidth) || FALLBACK_SCROLL_BAR_WIDTH;
}
this._lastHadScrollBar = this.scrollBarWidth > 0;
const elementStyle = window.getComputedStyle(this._element);
const elementPadding = parseInt(elementStyle.paddingLeft) + parseInt(elementStyle.paddingRight);
this._viewportElement.style.width = (this._renderService.dimensions.actualCellWidth * (this._bufferService.cols) + this.scrollBarWidth + (this._lastHadScrollBar ? elementPadding : 0)).toString() + 'px';