shithub: microui

Download patch

ref: c34204ec97ce98391456df74f4461db9f64eb622
parent: d7bf4e0f786812f864938ebed211140836aa6058
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sun Jan 5 06:04:56 EST 2020

with bigger fonts the "resize" area of a window can be unexpected, set it to scrollbar size instead

--- a/src/microui.c
+++ b/src/microui.c
@@ -1147,7 +1147,7 @@
 
   /* do `resize` handle */
   if (~opt & MU_OPT_NORESIZE) {
-    int sz = ctx->style->title_height;
+    int sz = ctx->style->scrollbar_size;
     mu_Id id = mu_get_id(ctx, "!resize", 7);
     mu_Rect r = mu_rect(rect.x + rect.w - sz, rect.y + rect.h - sz, sz, sz);
     mu_update_control(ctx, id, r, opt);