shithub: microui

Download patch

ref: d488b482d986a8757c549dbdb366b72210230670
parent: 0d66cc96e1919634bf803f02c86383b75360df77
author: rxi <[email protected]>
date: Thu May 2 16:25:54 EDT 2019

Made absolute layout rect set `last_rect` in mu_layout_next()

--- a/src/microui.c
+++ b/src/microui.c
@@ -554,7 +554,7 @@
     int type = layout->next_type;
     layout->next_type = 0;
     res = layout->next;
-    if (type == ABSOLUTE) { return res; }
+    if (type == ABSOLUTE) { return (ctx->last_rect = res); }
 
   } else {
     /* handle next row */