Add visibilty mode to as_sortable_control()
This commit is contained in:
parent
5f1184e93f
commit
02e1e6d1ec
9 changed files with 35 additions and 23 deletions
|
|
@ -36,8 +36,8 @@ Size2 MarginContainer::get_minimum_size() const {
|
|||
Size2 max;
|
||||
|
||||
for (int i = 0; i < get_child_count(); i++) {
|
||||
Control *c = Object::cast_to<Control>(get_child(i));
|
||||
if (!c || !c->is_visible() || c->is_set_as_top_level()) {
|
||||
Control *c = as_sortable_control(get_child(i), SortableVisbilityMode::VISIBLE);
|
||||
if (!c) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue