get focus to dock tab content after resize

Signed-off-by: Yangjun Wang <yangjun.wang@wartsila.com>
This commit is contained in:
Yangjun Wang committed 2020-09-20 14:43:22 +03:00
1 parent bddc6b33e3
commit 6cae138e65
2 files changed
+2

No files matched your search

@@ -48,6 +48,7 @@ export class EditorPanel extends React.Component<Props> {
onResize = () => { onResize = () => {
this.editor.resize(); this.editor.resize();
this.editor.focus();
} }
onCursorPosChange = (pos: Ace.Point) => { onCursorPosChange = (pos: Ace.Point) => {
+1
View File
@@ -152,6 +152,7 @@ export class Terminal {
onResize = () => { onResize = () => {
if (!this.isActive) return; if (!this.isActive) return;
this.fitLazy(); this.fitLazy();
this.focus();
} }
onActivate = () => { onActivate = () => {