Fix layout bug with 1-line title and 0-line summary.

This commit is contained in:
Brent Simmons 2018-02-23 22:20:59 -08:00
parent c5742d0242
commit 5d756d6a20

View File

@ -54,8 +54,10 @@ struct TimelineCellLayout {
lastTextRect = textRect
}
else if numberOfLinesForTitle == 1 {
if summaryRect.height > 0.1 {
lastTextRect = summaryRect
}
}
let dateRect = TimelineCellLayout.rectForDate(textBoxRect, lastTextRect, appearance, cellData)
let feedNameRect = TimelineCellLayout.rectForFeedName(textBoxRect, dateRect, appearance, cellData)