mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 09:18:18 +00:00
Remove old view before adding a new webview when doing a full reload. Fixes #3988.
This commit is contained in:
1 parent
269d0535bd
commit
4ab45f09bf
1 file changed
+1
@@ -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