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