From 5d756d6a20220ae4f435ee5dabf8d111fefb4b58 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Fri, 23 Feb 2018 22:20:59 -0800 Subject: [PATCH] Fix layout bug with 1-line title and 0-line summary. --- Evergreen/MainWindow/Timeline/Cell/TimelineCellLayout.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Evergreen/MainWindow/Timeline/Cell/TimelineCellLayout.swift b/Evergreen/MainWindow/Timeline/Cell/TimelineCellLayout.swift index 904b29e7d..f08c03bc8 100644 --- a/Evergreen/MainWindow/Timeline/Cell/TimelineCellLayout.swift +++ b/Evergreen/MainWindow/Timeline/Cell/TimelineCellLayout.swift @@ -54,7 +54,9 @@ struct TimelineCellLayout { lastTextRect = textRect } else if numberOfLinesForTitle == 1 { - lastTextRect = summaryRect + if summaryRect.height > 0.1 { + lastTextRect = summaryRect + } } let dateRect = TimelineCellLayout.rectForDate(textBoxRect, lastTextRect, appearance, cellData) let feedNameRect = TimelineCellLayout.rectForFeedName(textBoxRect, dateRect, appearance, cellData)