« get me outta code hell

Fix ListScrollForm.firstInput not having an effect immediately - tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
path: root/ui/form
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-07-25 13:15:10 -0300
committerFlorrie <towerofnix@gmail.com>2018-07-25 13:15:10 -0300
commitc36c19ced2e8f9824744d0543b6d97d64606d953 (patch)
tree78c24d8e5e7988fe8c8a1f916795ed16ef5edb51 /ui/form
parent40431bcfd46c457a1cf271b5eae53a35aa1d0b6b (diff)
Fix ListScrollForm.firstInput not having an effect immediately
Diffstat (limited to 'ui/form')
-rw-r--r--ui/form/ListScrollForm.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/form/ListScrollForm.js b/ui/form/ListScrollForm.js
index 714fc6f..77699c2 100644
--- a/ui/form/ListScrollForm.js
+++ b/ui/form/ListScrollForm.js
@@ -117,6 +117,8 @@ module.exports = class ListScrollForm extends Form {
     this.scrollItems = 0
 
     super.firstInput(...args)
+
+    this.fixLayout()
   }
 
   getScrollPositionOfElementAtEndOfView(element) {