From a9f07edbfc6ea3f693ac3149e39616949671d650 Mon Sep 17 00:00:00 2001 From: Florrie Date: Sun, 12 May 2019 17:18:54 -0300 Subject: Update tui-lib with scrollbar changes ...and adapt the code to support the scrollbar being hidden (if there aren't enough items to make the listing scrollable). --- ui.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui.js') diff --git a/ui.js b/ui.js index b16a5ec..6e4582b 100644 --- a/ui.js +++ b/ui.js @@ -2429,8 +2429,9 @@ class ContextMenu extends FocusElement { let height = Math.min(10, this.form.inputs.length) - width += 3 // Space for the pane border and scrollbar + width += 2 // Space for the pane border height += 2 // Space for the pane border + if (this.form.scrollBarVisible) width++ this.w = width this.h = height -- cgit 1.3.0-6-gf8a5