Don't allow window zooming if set to auto resize.

This commit is contained in:
Mitchell Livingston 2006-07-22 16:49:59 +00:00
parent c0004c7e96
commit 3f160243da
1 changed files with 4 additions and 0 deletions

View File

@ -2120,6 +2120,10 @@ static void sleepCallBack(void * controller, io_service_t y,
- (NSRect) windowWillUseStandardFrame: (NSWindow *) window defaultFrame: (NSRect) defaultFrame
{
//don't resize if set to auto size
if ([fDefaults boolForKey: @"AutoSize"])
return [fWindow frame];
NSRect windowRect = [fWindow frame];
float newHeight = windowRect.size.height - [fScrollView frame].size.height
+ [fFilteredTorrents count] * ([fTableView rowHeight] + [fTableView intercellSpacing].height);