Skip to content

Commit e4e5b96

Browse files
authored
Merge pull request #1780 from whydoubt/fix_1751
Make scrollbar draggable when using DOM renderer
2 parents cb97ab3 + 8ea0bb5 commit e4e5b96

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/renderer/dom/DomRenderer.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,14 @@ export class DomRenderer extends EventEmitter implements IRenderer {
123123
` display: inline-block;` +
124124
` height: 100%;` +
125125
` vertical-align: top;` +
126-
` width: ${this._terminal.charMeasure.width}px` +
126+
` width: ${this.dimensions.actualCellWidth}px` +
127127
`}`;
128128

129129
this._dimensionsStyleElement.innerHTML = styles;
130130

131131
this._selectionContainer.style.height = (<any>this._terminal)._viewportElement.style.height;
132-
this._rowContainer.style.width = `${this.dimensions.canvasWidth}px`;
133-
this._rowContainer.style.height = `${this.dimensions.canvasHeight}px`;
134-
this._terminal.screenElement.style.width = '';
135-
this._terminal.screenElement.style.height = '';
132+
this._terminal.screenElement.style.width = `${this.dimensions.canvasWidth}px`;
133+
this._terminal.screenElement.style.height = `${this.dimensions.canvasHeight}px`;
136134
}
137135

138136
public setTheme(theme: ITheme | undefined): IColorSet {

0 commit comments

Comments
 (0)