-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
if my LoopBaseItem , its widget height is always changed, this project cant work well. How to match item height Perfect? can you solve this problem?Thanks~
my LoopBaseItem Scripts
eg:
public class RankItem : LoopBaseItem {
private UILabel lbRankNo;
private UIWidget widget;
private static int _height = 30;
protected override void OnAwake()
{
this.lbRankNo = this.GetComponentInChildren();
this.widget = this.GetComponent();
}
public override void UpdateData(object updateData)
{
_height += 2;
widget.height = _height;
if (updateData is RankItemData)
{
RankItemData data = updateData as RankItemData;
this.lbRankNo.text = data.rank.ToString();
}
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels