Changeset 703


Ignore:
Timestamp:
Jul 29, 2006, 5:43:44 PM (17 years ago)
Author:
livings124
Message:

Auto resizing now respects the max possible size. This should help avoid strange resizing behavior.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r702 r703  
    4848#define TORRENT_TABLE_VIEW_DATA_TYPE    @"TorrentTableViewDataType"
    4949
    50 #define ROW_HEIGHT_REGULAR      65.0
     50#define ROW_HEIGHT_REGULAR      165.0
    5151#define ROW_HEIGHT_SMALL        40.0
    5252#define WINDOW_REGULAR_WIDTH    468.0
     
    7777        fPrefsController = [[PrefsController alloc] initWithWindowNibName: @"PrefsWindow"];
    7878        fBadger = [[Badger alloc] init];
     79       
     80        fAutoImportedNames = [[NSMutableArray alloc] init];
    7981       
    8082        [GrowlApplicationBridge setGrowlDelegate: self];
     
    342344   
    343345    //timer to check for auto import every 15 seconds, must do after everything else is set up
    344     fAutoImportedNames = [[NSMutableArray alloc] init];
    345    
    346346    fAutoImportTimer = [NSTimer scheduledTimerWithTimeInterval: 15.0 target: self
    347347        selector: @selector(checkAutoImportDirectory:) userInfo: nil repeats: YES];
     
    21312131    if (newHeight < minHeight)
    21322132        newHeight = minHeight;
     2133   
     2134    float maxHeight = [[fWindow screen] visibleFrame].size.height;
     2135    if (newHeight > maxHeight)
     2136        newHeight = maxHeight;
    21332137
    21342138    frame.origin.y -= (newHeight - frame.size.height);
Note: See TracChangeset for help on using the changeset viewer.