Skip to content

Commit

Permalink
Fix background filling
Browse files Browse the repository at this point in the history
The split view's not drawing background (from 72fa298) should be
enough to take care of the glitch. We don't need to fill the
split view's background.

Fix #138.
  • Loading branch information
uranusjr committed Aug 31, 2014
1 parent 981cc16 commit 7275bfb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions MacDown/Code/Document/MPDocument.m
Original file line number Diff line number Diff line change
Expand Up @@ -1305,16 +1305,11 @@ - (void)setupEditor
[self.editor setValue:value forKey:key];
}

CGColorRef backgroundCGColor = self.editor.backgroundColor.CGColor;
NSView *editorChrome = self.editor.enclosingScrollView.superview;

CALayer *layer = [CALayer layer];
layer.backgroundColor = backgroundCGColor;
layer.backgroundColor = self.editor.backgroundColor.CGColor;
editorChrome.layer = layer;

layer = [CALayer layer];
layer.backgroundColor = backgroundCGColor;
self.splitView.layer = layer;
editorChrome.wantsLayer = YES;

[self.highlighter activate];
self.editor.automaticLinkDetectionEnabled = NO;
Expand Down

0 comments on commit 7275bfb

Please sign in to comment.