« get me outta code hell

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:
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 e888fd1..714fc6f 100644
--- a/ui/form/ListScrollForm.js
+++ b/ui/form/ListScrollForm.js
@@ -40,6 +40,8 @@ module.exports = class ListScrollForm extends Form {
     let nextPos = 0
 
     for (const item of itemsPastScroll) {
+      item.fixLayout()
+
       item[this.posProp] = nextPos
       nextPos += item[this.sizeProp]