Skip to content

Commit

Permalink
use old calculation
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Logan <Alex.Logan@arm.com>
  • Loading branch information
Alex Logan authored and Alex Logan committed Feb 19, 2020
1 parent df090b3 commit 3942a12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/terminal/src/browser/terminal-widget-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,10 @@ export class TerminalWidgetImpl extends TerminalWidget implements StatefulWidget
}

protected resizeTerminal(): void {
this.fitAddon.fit();
const geo = this.fitAddon.proposeDimensions();
const cols = geo.cols;
const rows = geo.rows - 1; // subtract one row for margin
this.term.resize(cols, rows);
}

protected resizeTerminalProcess(): void {
Expand Down

0 comments on commit 3942a12

Please sign in to comment.