Fix ListContainer (#11296)

This commit is contained in:
Jacob Tong
2022-09-15 00:25:40 -07:00
committed by GitHub
parent 6239ccd27f
commit 473542b13c

View File

@@ -72,7 +72,7 @@ public sealed class ListContainer : Control
public void PopulateList(IReadOnlyList<ListData> data) public void PopulateList(IReadOnlyList<ListData> data)
{ {
if (_itemHeight == 0 || _data is {Count: 0} && data.Count > 0) if ((_itemHeight == 0 || _data is {Count: 0}) && data.Count > 0)
{ {
ListContainerButton control = new(data[0]); ListContainerButton control = new(data[0]);
GenerateItem?.Invoke(data[0], control); GenerateItem?.Invoke(data[0], control);