Skip to content

Commit

Permalink
Merge pull request #2 from zhaozilong1988/fix/err-for-empty-content
Browse files Browse the repository at this point in the history
Fix the error before ReloadData() is first time called.
  • Loading branch information
zhaozilong1988 authored May 1, 2020
2 parents fd24555 + 6a16381 commit 69ebcd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Assets/UIKit/UITableView/UITableView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ private void ResizeContent(int numberOfCells)

private void OnScrollPositionChanged(Vector2 normalizedPosition)
{
ReloadCells(normalizedPosition, false);
if (_holders.Count > 0)
ReloadCells(normalizedPosition, false);
}

private void ReloadCells(Vector2 normalizedPosition, bool alwaysRearrangeCell)
Expand Down

0 comments on commit 69ebcd0

Please sign in to comment.