summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui.cpp1
1 files changed, 1 insertions, 0 deletions
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;