summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorternvein <ternvein@alsitec.ru>2019-10-01 16:13:06 +0400
committerternvein <ternvein@alsitec.ru>2019-10-01 16:13:06 +0400
commit848eeafe294cdb6bdf82af829e36add97e551016 (patch)
tree47ca7099780422701b81040a291902bad0af172a /scene/gui
parent5fa6f9d7ff7d1f7eec19d1e97b58b92526b0cd9d (diff)
FIX: GridContainer children visibility check for min size evaluation
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/grid_container.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/grid_container.cpp b/scene/gui/grid_container.cpp
index a6842603fd..d304a37f82 100644
--- a/scene/gui/grid_container.cpp
+++ b/scene/gui/grid_container.cpp
@@ -210,7 +210,7 @@ Size2 GridContainer::get_minimum_size() const {
for (int i = 0; i < get_child_count(); i++) {
Control *c = Object::cast_to<Control>(get_child(i));
- if (!c || !c->is_visible_in_tree())
+ if (!c || !c->is_visible())
continue;
int row = valid_controls_index / columns;
int col = valid_controls_index % columns;