From 63e15d78c2ae812f75837d659a6434c391f2e207 Mon Sep 17 00:00:00 2001
From: Maurice Parker <mo@vincode.io>
Date: Thu, 30 Jan 2020 17:39:21 -0700
Subject: [PATCH] Fix max size phone landscape layout problems.  Issue #1743

---
 iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift b/iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift
index 74323a095..0227184bf 100644
--- a/iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift
+++ b/iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift
@@ -104,7 +104,10 @@ class MasterFeedTableViewSectionHeader: UITableViewHeaderFooterView {
 
 	override func layoutSubviews() {
 		super.layoutSubviews()
-		let layout = MasterFeedTableViewSectionHeaderLayout(cellWidth: bounds.size.width, insets: safeAreaInsets, label: titleView, unreadCountView: unreadCountView)
+		let layout = MasterFeedTableViewSectionHeaderLayout(cellWidth: contentView.bounds.size.width,
+															insets: contentView.safeAreaInsets,
+															label: titleView,
+															unreadCountView: unreadCountView)
 		layoutWith(layout)
 	}