From da6c99a2a52c46bf547c64ff90a3afb8196a5324 Mon Sep 17 00:00:00 2001 From: Florrie Date: Mon, 28 Oct 2019 19:48:24 -0300 Subject: Fix layout when editor is unfocused --- ui.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ui.js') diff --git a/ui.js b/ui.js index 2d3ae1f..66a7745 100644 --- a/ui.js +++ b/ui.js @@ -220,7 +220,10 @@ class AppElement extends FocusElement { this.textInfoPane.addChild(this.textEditor) this.textInfoPane.visible = false - this.textEditor.on('deselect', () => this.root.select(this.tabber)) + this.textEditor.on('deselect', () => { + this.root.select(this.tabber) + this.fixLayout() + }) if (!this.config.showTabberPane) { this.tabberPane.visible = false -- cgit 1.3.0-6-gf8a5