bug修复

This commit is contained in:
xiekaidong 2023-06-20 18:08:35 +08:00
parent d46fdec70a
commit f62e7bc79b

View File

@ -120,7 +120,7 @@ function HeroComp:refreshScrollRect()
end
local currCount = self.scrollRect:getTotalCount()
if cellCount == currCount then
self.scrollRect:updateAllCell()
self.scrollRect:refreshAll()
else
self.scrollRect:clearCells()
self.scrollRect:refillCells(cellCount)