diff options
author | Anni Ryynänen <anni@anniryynanen.com> | 2024-07-08 18:35:26 +0300 |
---|---|---|
committer | Anni Ryynänen <anni@anniryynanen.com> | 2024-07-12 16:21:05 +0300 |
commit | a9c91f4eefe087cb52661a36faedcc89956704bf (patch) | |
tree | 0152076c0fb28745c764a7a3da55e55db5682fb2 /scene/gui/center_container.cpp | |
parent | ec02d406ca0b9c822addff49cf58e9a72cf74eb0 (diff) | |
download | redot-engine-a9c91f4eefe087cb52661a36faedcc89956704bf.tar.gz |
Fix container minimum size with hidden parent
Diffstat (limited to 'scene/gui/center_container.cpp')
-rw-r--r-- | scene/gui/center_container.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/center_container.cpp b/scene/gui/center_container.cpp index 1af33d2814..5dc336ceb5 100644 --- a/scene/gui/center_container.cpp +++ b/scene/gui/center_container.cpp @@ -36,7 +36,7 @@ Size2 CenterContainer::get_minimum_size() const { } Size2 ms; for (int i = 0; i < get_child_count(); i++) { - Control *c = as_sortable_control(get_child(i)); + Control *c = as_sortable_control(get_child(i), SortableVisbilityMode::VISIBLE); if (!c) { continue; } |