Fix window expanding on relaunch
This commit is contained in:
parent
45e45a3991
commit
8e34e6071f
|
@ -94,7 +94,7 @@ class DatabaseWindowController: NSWindowController {
|
||||||
private func initializeUI() {
|
private func initializeUI() {
|
||||||
mainViewController = MainSplitViewController(mongoController: mongoController, initialCollection: initialCollection)
|
mainViewController = MainSplitViewController(mongoController: mongoController, initialCollection: initialCollection)
|
||||||
// otherwise the VC size uses the size from the nib, potentially changing the window size
|
// 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
|
contentViewController = mainViewController
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue