mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 23:31:53 -05:00
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:
@@ -411,6 +411,7 @@ void ItemList::set_max_columns(int p_amount) {
|
|||||||
ERR_FAIL_COND(p_amount < 0);
|
ERR_FAIL_COND(p_amount < 0);
|
||||||
max_columns = p_amount;
|
max_columns = p_amount;
|
||||||
update();
|
update();
|
||||||
|
shape_changed = true;
|
||||||
}
|
}
|
||||||
int ItemList::get_max_columns() const {
|
int ItemList::get_max_columns() const {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user