Merge pull request #32467 from Ternvein/grid-container-min-size-fix

Fix GridContainer children visibility check for min size evaluation
This commit is contained in:
Rémi Verschelde 2019-10-01 15:04:11 +02:00 committed by GitHub
commit 871a9d5d56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;