Fix window expanding on relaunch

This commit is contained in:
Shadowfacts 2020-08-12 16:52:18 -04:00
parent 45e45a3991
commit 8e34e6071f
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class DatabaseWindowController: NSWindowController {
private func initializeUI() {
mainViewController = MainSplitViewController(mongoController: mongoController, initialCollection: initialCollection)
// otherwise the VC size uses the size from the nib, potentially changing the window size
mainViewController.view.frame = CGRect(origin: .zero, size: window!.frame.size)
mainViewController.view.frame = window!.contentLayoutRect
contentViewController = mainViewController
}