GraphNode ignore non-visible children for minimum size.

This commit is contained in:
Johan Aires Rastén 2023-01-28 11:29:40 +01:00
parent e11ae937d5
commit 9a60c4affb
1 changed files with 1 additions and 1 deletions

View File

@ -664,7 +664,7 @@ Size2 GraphNode::get_minimum_size() const {
for (int i = 0; i < get_child_count(); i++) { for (int i = 0; i < get_child_count(); i++) {
Control *c = Object::cast_to<Control>(get_child(i)); Control *c = Object::cast_to<Control>(get_child(i));
if (!c) { if (!c || !c->is_visible()) {
continue; continue;
} }
if (c->is_set_as_top_level()) { if (c->is_set_as_top_level()) {