You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
FIX: GridContainer children visibility check for min size evaluation
This commit is contained in:
@@ -210,7 +210,7 @@ Size2 GridContainer::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 || !c->is_visible_in_tree())
|
if (!c || !c->is_visible())
|
||||||
continue;
|
continue;
|
||||||
int row = valid_controls_index / columns;
|
int row = valid_controls_index / columns;
|
||||||
int col = valid_controls_index % columns;
|
int col = valid_controls_index % columns;
|
||||||
|
|||||||
Reference in New Issue
Block a user