« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ui.js5
1 files changed, 4 insertions, 1 deletions
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