Skip to content

Commit e2c5422

Browse files
committed
Update comment for extra point added to height
1 parent e882981 commit e2c5422

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

TableViewCellWithAutoLayout/TableViewController/RJTableViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPa
175175
// Get the actual height required for the cell
176176
CGFloat height = [cell.contentView systemLayoutSizeFittingSize:UILayoutFittingCompressedSize].height;
177177

178-
// Add an extra point to the height to account for internal rounding errors that are occasionally observed in
179-
// the Auto Layout engine, which cause the returned height to be slightly too small in some cases.
178+
// Add an extra point to the height to account for the cell separator, which is added between the bottom
179+
// of the cell's contentView and the bottom of the table view cell.
180180
height += 1;
181181

182182
return height;

0 commit comments

Comments
 (0)