Fixes ItemList max column update

When setting the max column of an ItemList, the layout does not update until it is resized.
This commit is contained in:
codecustard 2019-11-06 12:26:51 -08:00
parent 500863859c
commit 71e79af1f1

View File

@ -411,6 +411,7 @@ void ItemList::set_max_columns(int p_amount) {
ERR_FAIL_COND(p_amount < 0);
max_columns = p_amount;
update();
shape_changed = true;
}
int ItemList::get_max_columns() const {