Skip to content

Commit

Permalink
Fix infinite layoutSubviews loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelson Domínguez committed Oct 16, 2015
1 parent 520c9ad commit 51ff279
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RETableViewManager/RETableViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ - (void)layoutSubviews

// Set content frame
//
CGRect contentFrame = self.contentView.frame;
CGRect contentFrame = self.contentView.bounds;
contentFrame.origin.x = contentFrame.origin.x + self.section.style.contentViewMargin;
contentFrame.size.width = contentFrame.size.width - self.section.style.contentViewMargin * 2;
self.contentView.frame = contentFrame;
self.contentView.bounds = contentFrame;

// iOS 7 textLabel margin fix
//
Expand Down

0 comments on commit 51ff279

Please sign in to comment.