소스 검색

Fixes ItemList max column update

When setting the max column of an ItemList, the layout does not update until it is resized.
codecustard 5 년 전
부모
커밋
71e79af1f1
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      scene/gui/item_list.cpp

+ 1 - 0
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 {