1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

get focus to dock tab content after resize

Signed-off-by: Yangjun Wang <yangjun.wang@wartsila.com>
This commit is contained in:
Yangjun Wang 2020-09-20 14:43:13 +03:00
parent bddc6b33e3
commit 6cae138e65
2 changed files with 2 additions and 0 deletions

View File

@ -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) => {

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 = () => {