Changeset 678 for trunk/macosx/Controller.m
- Timestamp:
- Jul 23, 2006, 7:22:24 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r676 r678 48 48 #define TORRENT_TABLE_VIEW_DATA_TYPE @"TorrentTableViewDataType" 49 49 50 #define ROW_HEIGHT_REGULAR 65.0 51 #define ROW_HEIGHT_SMALL 40.0 50 #define ROW_HEIGHT_REGULAR 65.0 51 #define ROW_HEIGHT_SMALL 40.0 52 #define WINDOW_REGULAR_WIDTH 468.0 52 53 53 54 #define WEBSITE_URL @"http://transmission.m0k.org/" … … 151 152 152 153 [contentView addSubview: fFilterBar]; 153 [fFilterBar setFrameOrigin: NSMakePoint(0, [contentView frame].origin.y + [contentView frame].size.height)];154 [fFilterBar setFrameOrigin: NSMakePoint(0, NSMaxY([contentView frame]))]; 154 155 155 156 [self showFilterBar: [fDefaults boolForKey: @"FilterBar"] animate: NO]; … … 164 165 165 166 [contentView addSubview: fStatusBar]; 166 [fStatusBar setFrameOrigin: NSMakePoint(0, [contentView frame].origin.y + [contentView frame].size.height)];167 [fStatusBar setFrameOrigin: NSMakePoint(0, NSMaxY([contentView frame]))]; 167 168 [self showStatusBar: [fDefaults boolForKey: @"StatusBar"] animate: NO]; 168 169 … … 2120 2121 : [self windowFrameForAmount: [fFilteredTorrents count]]; 2121 2122 2122 frame.size.width = [fDefaults boolForKey: @"SmallView"] ? [fWindow minSize].width : 468.0;2123 frame.size.width = [fDefaults boolForKey: @"SmallView"] ? [fWindow minSize].width : WINDOW_REGULAR_WIDTH; 2123 2124 return frame; 2124 2125 } … … 2187 2188 //hide search filter if it overlaps filter buttons 2188 2189 NSRect buttonFrame = [fPauseFilterButton frame]; 2189 if ( buttonFrame.origin.x + buttonFrame.size.width+ 2.0 > [fSearchFilterField frame].origin.x)2190 if (NSMaxX(buttonFrame) + 2.0 > [fSearchFilterField frame].origin.x) 2190 2191 { 2191 2192 if (![fSearchFilterField isHidden])
Note: See TracChangeset
for help on using the changeset viewer.