mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-21 09:29:24 +00:00
retain window size when content view does change
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user