mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Remove old view before adding a new webview when doing a full reload. Fixes #3988.
This commit is contained in:
@@ -557,6 +557,7 @@ private extension WebViewController {
|
||||
|
||||
// Add the webview - using autolayout will cause fullscreen video to fail and lose the web view
|
||||
webView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
|
||||
self.webView?.removeFromSuperview()
|
||||
self.view.insertSubview(webView, at: 0)
|
||||
|
||||
// UISplitViewController reports the wrong size to WKWebView which can cause horizontal
|
||||
|
||||
Reference in New Issue
Block a user