This commit is contained in:
MinhHai
2025-11-22 18:59:56 +07:00
2 changed files with 3 additions and 1 deletions
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.UIElements;
namespace BrewMonster.UI
@@ -43,6 +44,7 @@ namespace BrewMonster.UI
Vector2 size = content.sizeDelta;
size.y = heightItem * m_Item.Count + m_Item.Count * paddingY;
content.sizeDelta = size;
LayoutRebuilder.ForceRebuildLayoutImmediate(content);
}
public int SetItemData(int nIndex, uint dwItemData, int nSubIndex = 0, string strName = "")
+1 -1
View File
@@ -873,7 +873,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
content: {fileID: 3993049682140785046}
prefabItemUIListBox: {fileID: 6927273031412389844}
heightItem: 50
heightItem: 30
paddingY: 9
--- !u!1 &5271452121222737074
GameObject: