From d6c8674d7b90097359487dc108db99d7627f2d49 Mon Sep 17 00:00:00 2001 From: Michael Starke Date: Tue, 4 Feb 2020 23:15:57 +0100 Subject: [PATCH] retain window size when content view does change --- MacPass/MPDocumentWindowController.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MacPass/MPDocumentWindowController.m b/MacPass/MPDocumentWindowController.m index 74bdb9fe..0eea00bd 100644 --- a/MacPass/MPDocumentWindowController.m +++ b/MacPass/MPDocumentWindowController.m @@ -143,6 +143,11 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword); return self.toolbarDelegate.searchField; } +- (void)setContentViewController:(NSViewController *)contentViewController { + contentViewController.view.frame = self.window.contentView.frame; + [super setContentViewController:contentViewController]; +} + #pragma mark MPDocument notifications - (void)_didRevertDocument:(NSNotification *)notification { [self showPasswordInput];