Set scrollbar thumbsize depending on content height

This commit is contained in:
luk3yx 2022-10-09 22:42:15 +13:00
parent 950a9754a9
commit f219d6d0c4

View File

@ -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},