From 520c9ad85feaecd4243f2e0ed89321df737d8ea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nelson=20Domi=CC=81nguez?= Date: Thu, 3 Sep 2015 14:54:48 +0200 Subject: [PATCH 1/2] Fix RETableViewSection maximumTitleWidthWithFont --- RETableViewManager/RETableViewSection.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RETableViewManager/RETableViewSection.m b/RETableViewManager/RETableViewSection.m index 9131bf0..7d41076 100644 --- a/RETableViewManager/RETableViewSection.m +++ b/RETableViewManager/RETableViewSection.m @@ -136,7 +136,7 @@ - (CGFloat)maximumTitleWidthWithFont:(UIFont *)font { CGFloat width = 0; for (RETableViewItem *item in self.mutableItems) { - if ([item isKindOfClass:[RETextItem class]] || [item isKindOfClass:[REDateTimeItem class]] || [item isKindOfClass:[RERadioItem class]] || [item isKindOfClass:[REMultipleChoiceItem class]] || [item isKindOfClass:[RENumberItem class]]) { + if ([item isKindOfClass:[RETextItem class]] || [item isKindOfClass:[REDateTimeItem class]] || [item isKindOfClass:[RERadioItem class]] || [item isKindOfClass:[REMultipleChoiceItem class]] || [item isKindOfClass:[RENumberItem class]] || [item isKindOfClass:[REPickerItem class]]) { CGSize size = [item.title re_sizeWithFont:font]; width = MAX(width, size.width); } From 51ff279223f3dd4acc63817654f81e378fd85f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nelson=20Domi=CC=81nguez?= Date: Fri, 16 Oct 2015 08:37:36 +0200 Subject: [PATCH 2/2] Fix infinite layoutSubviews loop --- RETableViewManager/RETableViewCell.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RETableViewManager/RETableViewCell.m b/RETableViewManager/RETableViewCell.m index d76c554..16a0a4a 100755 --- a/RETableViewManager/RETableViewCell.m +++ b/RETableViewManager/RETableViewCell.m @@ -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 //