[ASTableView] Ignore table view cell layouts when there's no node assigned (#2091)

This commit is contained in:
Adlai Holler 2016-08-17 19:58:40 -07:00 committed by GitHub
parent 86d2ab617e
commit 4baffea8f6

View File

@ -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.