summaryrefslogtreecommitdiffstats
path: root/scene/gui/center_container.cpp
diff options
context:
space:
mode:
authorAnni Ryynänen <anni@anniryynanen.com>2024-07-08 18:35:26 +0300
committerAnni Ryynänen <anni@anniryynanen.com>2024-07-12 16:21:05 +0300
commita9c91f4eefe087cb52661a36faedcc89956704bf (patch)
tree0152076c0fb28745c764a7a3da55e55db5682fb2 /scene/gui/center_container.cpp
parentec02d406ca0b9c822addff49cf58e9a72cf74eb0 (diff)
downloadredot-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.cpp2
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;
}