diff options
author | Max <dmoagx@users.noreply.github.com> | 2018-05-04 00:03:53 +0200 |
---|---|---|
committer | Max <dmoagx@users.noreply.github.com> | 2018-05-04 00:03:53 +0200 |
commit | 30bd18e1886d12adb8fb36c02a93ad20b7b092ac (patch) | |
tree | 0f4e87c7a2a651697b8bf4ace24e4bdf582345e4 /Source | |
parent | b49edf67744ba6e54b7c0bdab7dc197cf8faac96 (diff) | |
download | sequelpro-30bd18e1886d12adb8fb36c02a93ad20b7b092ac.tar.gz sequelpro-30bd18e1886d12adb8fb36c02a93ad20b7b092ac.tar.bz2 sequelpro-30bd18e1886d12adb8fb36c02a93ad20b7b092ac.zip |
Fix a little UI issue with a clipped back/forward button
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPDatabaseDocument.h | 4 | ||||
-rw-r--r-- | Source/SPDatabaseDocument.m | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Source/SPDatabaseDocument.h b/Source/SPDatabaseDocument.h index ebc6092b..20fb34d1 100644 --- a/Source/SPDatabaseDocument.h +++ b/Source/SPDatabaseDocument.h @@ -149,9 +149,9 @@ IBOutlet id renameDatabaseMessageField; IBOutlet id renameDatabaseButton; - IBOutlet id chooseDatabaseButton; + IBOutlet NSPopUpButton *chooseDatabaseButton; #ifndef SP_CODA - IBOutlet id historyControl; + IBOutlet NSSegmentedControl *historyControl; IBOutlet NSTabView *tableTabView; IBOutlet NSTableView *tableInfoTable; diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index 3a079883..ad7a2614 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -4070,6 +4070,10 @@ static int64_t SPDatabaseDocumentInstanceCounter = 0; } else if ([itemIdentifier isEqualToString:SPMainToolbarHistoryNavigation]) { [toolbarItem setLabel:NSLocalizedString(@"Table History", @"toolbar item for navigation history")]; [toolbarItem setPaletteLabel:[toolbarItem label]]; + // At some point after 10.9 the sizing of NSSegmentedControl changed, resulting in clipping in newer OS X versions. + // We can't just adjust the XIB, because then it would be wrong for older versions (possibly resulting in drawing artifacts), + // so we have the OS determine the proper size at runtime. + [historyControl sizeToFit]; [toolbarItem setView:historyControl]; } else if ([itemIdentifier isEqualToString:SPMainToolbarShowConsole]) { |