iOS: tweaked #1156 (story height)

- Fixed overlap when the title is long and the content is short.
This commit is contained in:
David Sinclair 2019-03-04 20:30:11 -08:00
parent 9ffb727d70
commit 3aecee118c

View file

@ -1698,9 +1698,9 @@ heightForRowAtIndexPath:(NSIndexPath *)indexPath {
} else if (self.isDashboardModule || self.textSize != FeedDetailTextSizeTitleOnly) {
if (self.textSize == FeedDetailTextSizeMedium || self.textSize == FeedDetailTextSizeLong) {
NSDictionary *story = [self getStoryAtRow:indexPath.row];
NSString *content = [[story objectForKey:@"story_content"] convertHTML];
NSString *content = [story[@"story_content"] convertHTML];
if (content.length < 50) {
if (content.length < 50 && [story[@"story_title"] length] < 30) {
return height + font.pointSize * 3;
} else if (content.length < 100) {
return height + font.pointSize * 5;