From e768fda0d19bcd99ee2a400ac819ca39b5ec8593 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 11 Jan 2011 18:36:33 -0500 Subject: [PATCH] Remove the manual gutter. --- Source/BSSourceView.mm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Source/BSSourceView.mm b/Source/BSSourceView.mm index 9a6fbe8..4a728a1 100644 --- a/Source/BSSourceView.mm +++ b/Source/BSSourceView.mm @@ -181,13 +181,8 @@ */ - (void)setupViews { - int gutterWidth = 30; - // Create the scroll view. - NSRect scrollFrame = [self bounds]; - scrollFrame.origin.x = gutterWidth; - scrollFrame.size.width = scrollFrame.size.width - gutterWidth; - scrollView_ = [[[NSScrollView alloc] initWithFrame:scrollFrame] autorelease]; + scrollView_ = [[[NSScrollView alloc] initWithFrame:[self bounds]] autorelease]; [scrollView_ setHasHorizontalScroller:YES]; [scrollView_ setHasVerticalScroller:YES]; [scrollView_ setAutohidesScrollers:YES]; -- 2.22.5