From 71e79af1f14259598e687b4b64ab935e3bd2c3e2 Mon Sep 17 00:00:00 2001 From: codecustard Date: Wed, 6 Nov 2019 12:26:51 -0800 Subject: Fixes ItemList max column update When setting the max column of an ItemList, the layout does not update until it is resized. --- scene/gui/item_list.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp index 1a0539effa..1406586361 100644 --- a/scene/gui/item_list.cpp +++ b/scene/gui/item_list.cpp @@ -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 { -- cgit v1.2.3