« get me outta code hell

Make sure group is visible when it's auto-selected - 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-06-01 08:36:27 -0300
committerFlorrie <towerofnix@gmail.com>2018-06-01 08:36:32 -0300
commitb374e3ce617f4f1392f470afbb0f4982b3e8d53f (patch)
tree9c78644ab879970fba8df5335465eae2c20b5761
parenteca1367aa1eb83b6ebd32e457903eb8df1d66c99 (diff)
Make sure group is visible when it's auto-selected
m---------tui-lib0
-rw-r--r--ui.js1
2 files changed, 1 insertions, 0 deletions
diff --git a/tui-lib b/tui-lib
-Subproject b7e7223670328b4cba1c1454dd25057d24025b2
+Subproject 23dc4b24d92eb2e19c55029522acabfccb70191
diff --git a/ui.js b/ui.js
index 3d65d27..740b7f9 100644
--- a/ui.js
+++ b/ui.js
@@ -260,6 +260,7 @@ class GrouplikeListingElement extends ListScrollForm {
         this.loadGrouplike(parent)
         this.curIndex = this.inputs.findIndex(inp => inp.item === oldGrouplike) || this.firstItemIndex
         this.updateSelectedElement()
+        this.scrollSelectedElementIntoView()
       })
       this.addInput(upButton)
     }