Add visibilty mode to as_sortable_control()

This commit is contained in:
kobewi 2024-06-02 00:33:28 +02:00
parent 5f1184e93f
commit 02e1e6d1ec
9 changed files with 35 additions and 23 deletions

View file

@ -42,7 +42,7 @@ Size2 ScrollContainer::get_minimum_size() const {
largest_child_min_size = Size2();
for (int i = 0; i < get_child_count(); i++) {
Control *c = as_sortable_control(get_child(i));
Control *c = as_sortable_control(get_child(i), SortableVisbilityMode::VISIBLE);
if (!c) {
continue;
}