From 8e34e6071f80a5b0ee0c4bd43051fad6b520fb2c Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Wed, 12 Aug 2020 16:52:18 -0400 Subject: [PATCH] Fix window expanding on relaunch --- MongoView/Windows/DatabaseWindowController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MongoView/Windows/DatabaseWindowController.swift b/MongoView/Windows/DatabaseWindowController.swift index 5b895fd..6c25f77 100644 --- a/MongoView/Windows/DatabaseWindowController.swift +++ b/MongoView/Windows/DatabaseWindowController.swift @@ -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 }