chore: update cell height estimate

This commit is contained in:
CMK 2021-04-08 11:26:15 +08:00
parent a0a636917f
commit 1deb75d041
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ extension TableViewCellHeightCacheableContainer {
}
func handleTableView(_ tableView: UITableView, estimatedHeightForRowAt indexPath: IndexPath) -> CGFloat {
guard let item = item(for: nil, indexPath: indexPath) else { return 200 }
guard let item = item(for: nil, indexPath: indexPath) else { return UITableView.automaticDimension }
guard let frame = cellFrameCache.object(forKey: NSNumber(value: item.hashValue))?.cgRectValue else {
if case .bottomLoader = item {
return TimelineLoaderTableViewCell.cellHeight