Skip to content

Commit d0cee82

Browse files
committed
Improved default/min window sizing
1 parent 4f783fe commit d0cee82

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

WWDC.xcodeproj/xcshareddata/xcschemes/WWDC with iCloud.xcscheme

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
5858
launchStyle = "0"
5959
useCustomWorkingDirectory = "NO"
60-
ignoresPersistentStateOnLaunch = "NO"
60+
ignoresPersistentStateOnLaunch = "YES"
6161
debugDocumentVersioning = "YES"
6262
debugServiceExtension = "internal"
6363
allowLocationSimulation = "YES">
@@ -102,11 +102,11 @@
102102
</CommandLineArgument>
103103
<CommandLineArgument
104104
argument = "--delorean"
105-
isEnabled = "YES">
105+
isEnabled = "NO">
106106
</CommandLineArgument>
107107
<CommandLineArgument
108108
argument = "2016-06-13T11:00:00-07:00"
109-
isEnabled = "YES">
109+
isEnabled = "NO">
110110
</CommandLineArgument>
111111
</CommandLineArguments>
112112
<AdditionalOptions>

WWDC/MainWindowController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ final class MainWindowController: NSWindowController {
2121

2222
static var defaultRect: NSRect {
2323
if let screen = NSScreen.main() {
24-
return screen.visibleFrame.insetBy(dx: 50, dy: 70)
24+
return screen.visibleFrame.insetBy(dx: 50, dy: 120)
2525
} else {
26-
return NSRect(x: 0, y: 0, width: 1200, height: 640)
26+
return NSRect(x: 0, y: 0, width: 1200, height: 600)
2727
}
2828
}
2929

WWDC/SessionDetailsViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class SessionDetailsViewController: NSViewController {
160160
shelfController.view.translatesAutoresizingMaskIntoConstraints = false
161161
mainStackView.translatesAutoresizingMaskIntoConstraints = false
162162

163-
shelfController.view.heightAnchor.constraint(greaterThanOrEqualToConstant: 400).isActive = true
163+
shelfController.view.heightAnchor.constraint(greaterThanOrEqualToConstant: 300).isActive = true
164164

165165
view.addSubview(shelfController.view)
166166
view.addSubview(mainStackView)

0 commit comments

Comments
 (0)