fix: refresh terminal's available space (cols/rows) on dock's resize

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2021-10-09 22:21:36 +03:00
1 parent 103566f4bf
commit 10a7db54d0
2 files changed
+7 -7

No files matched your search

@@ -22,11 +22,8 @@
@import "~xterm"; @import "~xterm";
.TerminalWindow { .TerminalWindow {
margin: $padding; flex: 1;
margin-left: $padding * 2; height: 100%;
margin-top: $padding * 2; overflow: hidden;
margin: 10px;
> .xterm {
overflow: hidden;
}
} }
@@ -45,6 +45,9 @@ export class TerminalWindow extends React.Component<Props> {
tabKind: TabKind.TERMINAL, tabKind: TabKind.TERMINAL,
fireImmediately: true, fireImmediately: true,
}), }),
// refresh terminal available space (cols/rows) when <Dock/> resized
dockStore.onResize(() => this.terminal?.fitLazy()),
]); ]);
} }