From f219d6d0c4c8ab8a3e37d6de4ed127e0684262a5 Mon Sep 17 00:00:00 2001 From: luk3yx Date: Sun, 9 Oct 2022 22:42:15 +1300 Subject: [PATCH] Set scrollbar thumbsize depending on content height --- init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/init.lua b/init.lua index 28eaa0d..19395b0 100644 --- a/init.lua +++ b/init.lua @@ -909,6 +909,7 @@ function gui.ScrollableVBox(def) -- expanded _after_positioned = function(self) opts.max = max(inner_h - self.h + 0.05, 0) * 10 + opts.thumbsize = (self.h / inner_h) * (inner_h - self.h) * 10 end, }, gui.ScrollbarOptions{opts = opts},