mirror of
https://github.com/MacPass/MacPass.git
synced 2026-01-31 05:58: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;
|
return self.toolbarDelegate.searchField;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)setContentViewController:(NSViewController *)contentViewController {
|
||||||
|
contentViewController.view.frame = self.window.contentView.frame;
|
||||||
|
[super setContentViewController:contentViewController];
|
||||||
|
}
|
||||||
|
|
||||||
#pragma mark MPDocument notifications
|
#pragma mark MPDocument notifications
|
||||||
- (void)_didRevertDocument:(NSNotification *)notification {
|
- (void)_didRevertDocument:(NSNotification *)notification {
|
||||||
[self showPasswordInput];
|
[self showPasswordInput];
|
||||||
|
|||||||
Reference in New Issue
Block a user