diff options
author | ternvein <ternvein@alsitec.ru> | 2019-10-01 16:13:06 +0400 |
---|---|---|
committer | ternvein <ternvein@alsitec.ru> | 2019-10-01 16:13:06 +0400 |
commit | 848eeafe294cdb6bdf82af829e36add97e551016 (patch) | |
tree | 47ca7099780422701b81040a291902bad0af172a /scene/gui | |
parent | 5fa6f9d7ff7d1f7eec19d1e97b58b92526b0cd9d (diff) |
FIX: GridContainer children visibility check for min size evaluation
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/grid_container.cpp | 2 |
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; |