From 17a016ee6d3e99773d6d6e6022f2b569ce82ff5a Mon Sep 17 00:00:00 2001 From: prayerie Date: Tue, 17 Mar 2026 21:37:56 +0000 Subject: [PATCH] Calc listbox scrollbar in ins and del --- tobkit/source/listbox.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tobkit/source/listbox.cpp b/tobkit/source/listbox.cpp index 1448811..ad86775 100644 --- a/tobkit/source/listbox.cpp +++ b/tobkit/source/listbox.cpp @@ -189,6 +189,7 @@ void ListBox::del(void) } if(activeelement >= scrollpos) { + calcScrollThingy(); draw(); } } @@ -198,7 +199,7 @@ void ListBox::del(void) void ListBox::ins(u16 idx, const char *name) { elements.insert(elements.begin()+idx, name); - + calcScrollThingy(); draw(); }