shithub: microui

Download patch

ref: 7b6b205ac2fd664115ddf346f68fd10da1571506
parent: 57b1172b65526d4d2463f748ce8bd7a981b04991
author: rxi <rxi@users.noreply.github.com>
date: Sun Oct 6 09:45:08 EDT 2019

Changed scrollbar to use thumb_size as minimum size

--- a/src/microui.c
+++ b/src/microui.c
@@ -988,7 +988,7 @@
       /* draw base and thumb */                                             \
       ctx->draw_frame(ctx, base, MU_COLOR_SCROLLBASE);                      \
       thumb = base;                                                         \
-      thumb.h = mu_max(16, base.h * b->h / cs.y);                           \
+      thumb.h = mu_max(ctx->style->thumb_size, base.h * b->h / cs.y);       \
       thumb.y += cnt->scroll.y * (base.h - thumb.h) / maxscroll;            \
       ctx->draw_frame(ctx, thumb, MU_COLOR_SCROLLTHUMB);                    \
                                                                             \