Diff for /chimera/MJExtendedTabView.m between versions 1.2 and 1.3

version 1.2, 2002/03/03 10:49:50 version 1.3, 2002/03/04 12:55:22
Line 84 Line 84
 // Only to be used with the 2 types of tab view which we use in Chimera.  // Only to be used with the 2 types of tab view which we use in Chimera.
 - (void)showOrHideTabsAsAppropriate  - (void)showOrHideTabsAsAppropriate
 {  {
    if ( [[self tabViewItems] count] < 2) {    if ( [self autohides] ) {
        if ( [self tabViewType] != NSNoTabsBezelBorder ) {        if ( [[self tabViewItems] count] < 2) {
            [self setFrameSize:NSMakeSize( NSWidth([self frame]), NSHeight([self frame]) + 10 )];            if ( [self tabViewType] != NSNoTabsBezelBorder ) {
                 [self setFrameSize:NSMakeSize( NSWidth([self frame]), NSHeight([self frame]) + 10 )];
             }
             [self setTabViewType:NSNoTabsBezelBorder];
         } else {
             if ( [self tabViewType] != NSTopTabsBezelBorder ) {
                 [self setFrameSize:NSMakeSize( NSWidth([self frame]), NSHeight([self frame]) - 10 )];
             }
             [self setTabViewType:NSTopTabsBezelBorder];
         }          }
        [self setTabViewType:NSNoTabsBezelBorder];        [self display];
    } else { 
        if ( [self tabViewType] != NSTopTabsBezelBorder ) { 
            [self setFrameSize:NSMakeSize( NSWidth([self frame]), NSHeight([self frame]) - 10 )]; 
        } 
        [self setTabViewType:NSTopTabsBezelBorder]; 
     }      }
     [self display];  
 }  }
   
   

Removed from v.1.2  
changed lines
  Added in v.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>