From 42695cf9ac1571f136c2f795a35c63296062d3c4 Mon Sep 17 00:00:00 2001 From: Ethan Setnik Date: Wed, 22 Nov 2017 18:05:15 -0500 Subject: [PATCH] use autolayout to fix cut off titles --- Aerial/Resources/PreferencesWindow.xib | 58 +++++++++++-------- .../PreferencesWindowController.swift | 24 ++++---- 2 files changed, 45 insertions(+), 37 deletions(-) diff --git a/Aerial/Resources/PreferencesWindow.xib b/Aerial/Resources/PreferencesWindow.xib index b5943e39..dc171b4a 100644 --- a/Aerial/Resources/PreferencesWindow.xib +++ b/Aerial/Resources/PreferencesWindow.xib @@ -1,9 +1,9 @@ - + - - + + @@ -42,11 +42,11 @@ - + - + @@ -76,7 +76,7 @@ - + @@ -94,14 +94,12 @@ - - - + + - - - + + @@ -109,6 +107,12 @@ + + + + + + @@ -118,17 +122,15 @@ - - - - + + @@ -136,6 +138,12 @@ + + + + + + @@ -162,11 +170,11 @@ - + - + @@ -268,7 +276,7 @@ - + @@ -281,7 +289,7 @@ - + diff --git a/Aerial/Source/Controllers/PreferencesWindowController.swift b/Aerial/Source/Controllers/PreferencesWindowController.swift index 9e6bbece..0805aa03 100644 --- a/Aerial/Source/Controllers/PreferencesWindowController.swift +++ b/Aerial/Source/Controllers/PreferencesWindowController.swift @@ -451,18 +451,18 @@ NSOutlineViewDelegate, VideoDownloadDelegate { } } - func outlineView(_ outlineView: NSOutlineView, heightOfRowByItem item: Any) -> CGFloat { - switch item { - case is AerialVideo: - return 18 - case is TimeOfDay: - return 18 - case is City: - return 18 - default: - return 0 - } - } +// func outlineView(_ outlineView: NSOutlineView, heightOfRowByItem item: Any) -> CGFloat { +// switch item { +// case is AerialVideo: +// return 18 +// case is TimeOfDay: +// return outlineView.textFi +// case is City: +// return 18 +// default: +// fatalError("unhandled item in heightOfRowByItem for \(item)") +// } +// } // MARK: - Caching