diff options
author | quou <quou@disroot.org> | 2025-02-09 14:58:03 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2025-02-09 14:58:03 +1100 |
commit | 3f6cc402e6fe0b99735ebb98b56f43a2ece76ba0 (patch) | |
tree | dd3b39d075fcbf58dd69e3bb6fc69d59e641773c /ui.cpp | |
parent | fe3c9042c3c6406e475ee6ea150471f0fc1081e8 (diff) |
Fix UI::Tree::layout
Diffstat (limited to 'ui.cpp')
-rw-r--r-- | ui.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |