feat:fix reuse cell relayout
This commit is contained in:
parent
4fdc37a717
commit
05f26d55b5
@ -92,6 +92,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
|
|||||||
DoricListItemNode *node = cell.doricListItemNode;
|
DoricListItemNode *node = cell.doricListItemNode;
|
||||||
node.viewId = model[@"id"];
|
node.viewId = model[@"id"];
|
||||||
[node blend:props];
|
[node blend:props];
|
||||||
|
[node.view setNeedsLayout];
|
||||||
CGSize size = [node.view sizeThatFits:CGSizeMake(cell.width, cell.height)];
|
CGSize size = [node.view sizeThatFits:CGSizeMake(cell.width, cell.height)];
|
||||||
[self callItem:position height:size.height];
|
[self callItem:position height:size.height];
|
||||||
return cell;
|
return cell;
|
||||||
|
Reference in New Issue
Block a user