Fix container minimum size with hidden parent

This commit is contained in:
Anni Ryynänen 2024-07-08 18:35:26 +03:00
parent ec02d406ca
commit a9c91f4eef
No known key found for this signature in database
GPG key ID: 0C29030C4FA87DDC
5 changed files with 9 additions and 8 deletions

View file

@ -250,7 +250,7 @@ Size2 FlowContainer::get_minimum_size() const {
Size2i minimum;
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;
}