summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorJohan Aires Rastén <johan@oljud.se>2023-04-07 17:44:38 +0200
committerYuri Sizov <yuris@humnom.net>2023-04-07 17:44:38 +0200
commit585f4ed737d6281c03f3cf4af16e8bff7df57814 (patch)
tree169a4c1d268866d1bb4eac80ab2fdb5cc0ec3577 /scene/gui
parentcacc6c5ed564c7a48a56cf2689863d4090d74b13 (diff)
GraphNode ignore non-visible children for minimum size.
(cherry picked from commit 9a60c4affb0d6c3638aea140a820eddf258eb133)
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/graph_node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/graph_node.cpp b/scene/gui/graph_node.cpp
index 7d9cdd62ff..8b2d462d85 100644
--- a/scene/gui/graph_node.cpp
+++ b/scene/gui/graph_node.cpp
@@ -664,7 +664,7 @@ Size2 GraphNode::get_minimum_size() const {
for (int i = 0; i < get_child_count(); i++) {
Control *c = Object::cast_to<Control>(get_child(i));
- if (!c) {
+ if (!c || !c->is_visible()) {
continue;
}
if (c->is_set_as_top_level()) {