Remove the manual gutter.
authorRobert Sesek <rsesek@bluestatic.org>
Tue, 11 Jan 2011 23:36:33 +0000 (18:36 -0500)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 16 Jan 2011 04:45:08 +0000 (23:45 -0500)
Source/BSSourceView.mm

index 9a6fbe8585d464780ec131eaa0ef317b8b52c8c9..4a728a179c8aab6f0536fe249a156d87f01ac025 100644 (file)
  */
 - (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];