From 6a16381bc356a7c715aaef57a9883df836ddf409 Mon Sep 17 00:00:00 2001 From: zhaozilong1988 Date: Fri, 1 May 2020 19:45:59 +0900 Subject: [PATCH] bugfix --- Assets/UIKit/UITableView/UITableView.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/UIKit/UITableView/UITableView.cs b/Assets/UIKit/UITableView/UITableView.cs index a4ecb44..44951a6 100644 --- a/Assets/UIKit/UITableView/UITableView.cs +++ b/Assets/UIKit/UITableView/UITableView.cs @@ -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)