Skip to content

Commit

Permalink
Tweak edge values for bound correction
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Feb 11, 2015
1 parent 4c64fea commit ccc23f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MacDown/Code/Document/MPDocument.m
Original file line number Diff line number Diff line change
Expand Up @@ -937,11 +937,11 @@ - (void)boundsDidChange:(NSNotification *)notification
return;

self.shouldHandleBoundsChange = NO;
CGFloat clipWidth = round([notification.object frame].size.width);
CGFloat clipWidth = [notification.object frame].size.width;
NSRect editorFrame = self.editor.frame;
if (fabs(editorFrame.size.width - clipWidth) >= 1.0)
if (fabs(editorFrame.size.width - clipWidth) > 2.0)
{
editorFrame.size.width = clipWidth;
editorFrame.size.width = round(clipWidth);
self.editor.frame = editorFrame;
}
[self syncScrollers];
Expand Down

0 comments on commit ccc23f5

Please sign in to comment.