From 3f6cc402e6fe0b99735ebb98b56f43a2ece76ba0 Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 9 Feb 2025 14:58:03 +1100 Subject: Fix UI::Tree::layout --- ui.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'ui.cpp') diff --git a/ui.cpp b/ui.cpp index 566f1a7..ab0de75 100644 --- a/ui.cpp +++ b/ui.cpp @@ -1408,6 +1408,7 @@ UI::Rect UI::Tree::layout(const Rect& avail) { r.h += ui_padding; cr.y += r.h; cr.h -= r.h; + if (r.w > used.w) used.w = r.w; used.h += r.h; } used.h += ui_padding; -- cgit v1.2.3-54-g00ecf