Skip to content

Commit

Permalink
Fix backwards layout in terminal
Browse files Browse the repository at this point in the history
Fixes #91580
Fixes #91135
Fixes #91119
  • Loading branch information
Tyriar committed Feb 26, 2020
1 parent 0c2947f commit 622ddc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/contrib/terminal/browser/terminalView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class TerminalViewPane extends ViewPane {
}));

// Force another layout (first is setContainers) since config has changed
this.layoutBody(this._terminalContainer.offsetWidth, this._terminalContainer.offsetHeight);
this.layoutBody(this._terminalContainer.offsetHeight, this._terminalContainer.offsetWidth);
}

protected layoutBody(height: number, width: number): void {
Expand Down Expand Up @@ -321,7 +321,7 @@ export class TerminalViewPane extends ViewPane {
}
// TODO: Can we support ligatures?
// dom.toggleClass(this._parentDomElement, 'enable-ligatures', this._terminalService.configHelper.config.fontLigatures);
this.layoutBody(this._parentDomElement.offsetWidth, this._parentDomElement.offsetHeight);
this.layoutBody(this._parentDomElement.offsetHeight, this._parentDomElement.offsetWidth);
}
}

Expand Down

0 comments on commit 622ddc0

Please sign in to comment.