Changeset 3209

Show
Ignore:
Timestamp:
04/17/06 01:53:11 (3 years ago)
Author:
timothy
Message:

Fix for auto resize split views.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Views/JVSplitView.m

    r3208 r3209  
    6161 
    6262- (float) dividerThickness { 
    63         if( [self isPaneSplitter] ) return 4.; 
    6463        if( ! [self isVertical] ) return 10.; 
    6564        return [super dividerThickness]; 
     
    6766 
    6867- (void) drawDividerInRect:(NSRect) rect { 
    69         if( ! [self isPaneSplitter] ) { 
    70                 if( ! [self isVertical] ) { 
    71                        rect.origin.y += 10.
    72                        [[NSImage imageNamed:@"splitviewDividerBackground"] tileInRect:rect]; 
     68        if( ! [self isVertical] ) { 
     69                rect.origin.y += 10.; 
     70                [[NSImage imageNamed:@"splitviewDividerBackground"] tileInRect:rect]
     71                if( ! [self isPaneSplitter] ) 
    7372                        [[NSImage imageNamed:@"splitviewDimple"] compositeToPoint:NSMakePoint( ( NSWidth( rect ) / 2. ) - 3., rect.origin.y ) operation:NSCompositeCopy]; 
    74                 } else [super drawDividerInRect:rect]; 
    75         } 
     73        } else [super drawDividerInRect:rect]; 
    7674} 
    7775@end