From 3f160243dab51287e1f619638fb9bfa0db026f27 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 22 Jul 2006 16:49:59 +0000 Subject: [PATCH] Don't allow window zooming if set to auto resize. --- macosx/Controller.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/macosx/Controller.m b/macosx/Controller.m index 4be33e82b..45419edaa 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -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);