mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 11:20:18 +00:00
[ASTableView] Ignore table view cell layouts when there's no node assigned (#2091)
This commit is contained in:
parent
86d2ab617e
commit
4baffea8f6
@ -1163,8 +1163,12 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
|
||||
|
||||
- (void)didLayoutSubviewsOfTableViewCell:(_ASTableViewCell *)tableViewCell
|
||||
{
|
||||
CGFloat contentViewWidth = tableViewCell.contentView.bounds.size.width;
|
||||
ASCellNode *node = tableViewCell.node;
|
||||
if (node == nil) {
|
||||
return;
|
||||
}
|
||||
|
||||
CGFloat contentViewWidth = tableViewCell.contentView.bounds.size.width;
|
||||
ASSizeRange constrainedSize = node.constrainedSizeForCalculatedLayout;
|
||||
|
||||
// Table view cells should always fill its content view width.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user