1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-20 13:16:53 +00:00

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

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);