Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Classes/UITableView+FDTemplateLayoutCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ - (CGFloat)fd_heightForCellWithIdentifier:(NSString *)identifier configuration:(
};
contentViewWidth -= systemAccessoryWidths[templateLayoutCell.accessoryType];
}
// If the tableView has section index titles, the content width is smaller
if([self.dataSource respondsToSelector:@selector(sectionIndexTitlesForTableView:)] && [self.dataSource sectionIndexTitlesForTableView:self].count >0){
contentViewWidth -= 15;
}

CGSize fittingSize = CGSizeZero;

Expand Down