« get me outta code hell

Fix queue scrollbar not showing up right away - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-08-04 00:12:09 -0300
committerFlorrie <towerofnix@gmail.com>2018-08-04 00:12:09 -0300
commit2fe1efa07fdcd36e8cc385b9fc53d5472b6dde55 (patch)
tree47449993df03368d250f3fa458910cc795932609
parent06f1bbfde82b53066cea024cfd68129f20e605ae (diff)
Fix queue scrollbar not showing up right away
-rw-r--r--ui.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui.js b/ui.js
index b6d525c..3c06705 100644
--- a/ui.js
+++ b/ui.js
@@ -316,8 +316,8 @@ class AppElement extends FocusElement {
 
     this.tabber.fillParent()
     this.tabber.fixLayout()
-    this.queueListingElement.fillParent()
-    this.playbackInfoElement.fillParent()
+    this.queueListingElement.fixLayout()
+    this.playbackInfoElement.fixLayout()
   }
 
   keyPressed(keyBuf) {
@@ -695,6 +695,10 @@ class GrouplikeListingElement extends FocusElement {
   }
 
   fixLayout() {
+    if (this.parent) {
+      this.fillParent()
+    }
+
     this.commentLabel.w = this.contentW
 
     this.form.w = this.contentW