feat:fix reuse cell relayout

This commit is contained in:
pengfei.zhou 2019-11-19 14:15:00 +08:00
parent 4fdc37a717
commit 05f26d55b5

View File

@ -92,6 +92,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
DoricListItemNode *node = cell.doricListItemNode;
node.viewId = model[@"id"];
[node blend:props];
[node.view setNeedsLayout];
CGSize size = [node.view sizeThatFits:CGSizeMake(cell.width, cell.height)];
[self callItem:position height:size.height];
return cell;