Skip to content
Permalink
Browse files

Make #3387 backwards compatible

  • Loading branch information...
dmoagx committed Feb 20, 2019
1 parent cc05b73 commit c88e7c5b74cdf3c9eef38dade6a8a33c3ffefe02
Showing with 6 additions and 1 deletion.
  1. +6 −1 Source/SPDatabaseDocument.m
@@ -100,6 +100,7 @@
static NSString *SPNewDatabaseCopyContent = @"SPNewDatabaseCopyContent";

static int64_t SPDatabaseDocumentInstanceCounter = 0;
static BOOL isOSAtLeast10_14;

@interface SPDatabaseDocument ()

@@ -147,6 +148,10 @@ @implementation SPDatabaseDocument

#pragma mark -

+ (void)initialize {
isOSAtLeast10_14 = [SPOSInfo isOSVersionAtLeastMajor:10 minor:14 patch:0];
}

- (id)init
{
if ((self = [super init])) {
@@ -5895,7 +5900,7 @@ - (void)updateChooseDatabaseToolbarItemWidth
CGFloat leftPaneWidth = [[[contentViewSplitter subviews] objectAtIndex:0] frame].size.width;

// subtract some pixels to allow for misc stuff
leftPaneWidth -= 9;
leftPaneWidth -= isOSAtLeast10_14 ? 9 : 12;

// make sure it's not too small or to big
if (leftPaneWidth < 130) leftPaneWidth = 130;

0 comments on commit c88e7c5

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.