Skip to content
Browse files
Fix a little UI issue with a clipped back/forward button
  • Loading branch information
dmoagx committed May 3, 2018
1 parent b49edf6 commit 30bd18e1886d12adb8fb36c02a93ad20b7b092ac
Showing with 6 additions and 2 deletions.
  1. +2 −2 Source/SPDatabaseDocument.h
  2. +4 −0 Source/SPDatabaseDocument.m
@@ -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;
@@ -4070,6 +4070,10 @@ - (NSToolbarItem *)toolbar:(NSToolbar *)toolbar itemForItemIdentifier:(NSString
} 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]) {

0 comments on commit 30bd18e

Please sign in to comment.