From 4c7f1362b5811c57263e1e09e96089014095503a Mon Sep 17 00:00:00 2001 From: haikusw Date: Wed, 15 Jun 2022 23:56:02 -0700 Subject: [PATCH] Fix for #3543 Noticed that the window size wasn't returning the new value and that's why using the window size to calculate the size to restore it to we were incrementing the original size by one. Not sure if this breaks the fix that this bigSurOffsetFix was implementing though because I can't replicate that on macOS 12.4 --- Mac/MainWindow/Detail/DetailWebView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mac/MainWindow/Detail/DetailWebView.swift b/Mac/MainWindow/Detail/DetailWebView.swift index 3fd16cb5e..566abdea4 100644 --- a/Mac/MainWindow/Detail/DetailWebView.swift +++ b/Mac/MainWindow/Detail/DetailWebView.swift @@ -90,7 +90,7 @@ final class DetailWebView: WKWebView { frame.size = NSSize(width: window!.frame.width, height: window!.frame.height - 1) window!.setFrame(frame, display: false) - frame.size = NSSize(width: window!.frame.width, height: window!.frame.height + 1) + frame.size = NSSize(width: frame.width, height: frame.height + 1) window!.setFrame(frame, display: false) } }