diff --git a/iOS/Article/WebViewController.swift b/iOS/Article/WebViewController.swift index 968a00ea6..8e47f8abd 100644 --- a/iOS/Article/WebViewController.swift +++ b/iOS/Article/WebViewController.swift @@ -79,6 +79,13 @@ class WebViewController: UIViewController { } + override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) { + // We need to reload the webview on the iPhone when rotation happens to clear out any old bad viewport sizes + if traitCollection.userInterfaceIdiom == .phone { + loadWebView() + } + } + // MARK: Notifications @objc func webFeedIconDidBecomeAvailable(_ note: Notification) {