mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-10 00:50:55 +01:00
Align feedname and date correctly if there is no title or summary
This commit is contained in:
parent
da64f65c7b
commit
0a3713e078
@ -89,7 +89,14 @@ struct MasterTimelineDefaultCellLayout: MasterTimelineCellLayout {
|
|||||||
}
|
}
|
||||||
self.summaryRect = MasterTimelineDefaultCellLayout.rectForSummary(cellData, currentPoint, textAreaWidth, numberOfLinesForTitle)
|
self.summaryRect = MasterTimelineDefaultCellLayout.rectForSummary(cellData, currentPoint, textAreaWidth, numberOfLinesForTitle)
|
||||||
|
|
||||||
currentPoint.y = [self.titleRect, self.summaryRect].maxY()
|
var y = [self.titleRect, self.summaryRect].maxY()
|
||||||
|
if y == 0 {
|
||||||
|
y = iconImageRect.origin.y + iconImageRect.height
|
||||||
|
// Necessary calculation of either feed name or date since we are working with dynamic font-sizes
|
||||||
|
let tmp = MasterTimelineDefaultCellLayout.rectForDate(cellData, currentPoint, textAreaWidth)
|
||||||
|
y -= tmp.height
|
||||||
|
}
|
||||||
|
currentPoint.y = y
|
||||||
|
|
||||||
// Feed Name and Pub Date
|
// Feed Name and Pub Date
|
||||||
self.dateRect = MasterTimelineDefaultCellLayout.rectForDate(cellData, currentPoint, textAreaWidth)
|
self.dateRect = MasterTimelineDefaultCellLayout.rectForDate(cellData, currentPoint, textAreaWidth)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user