By popular demand, the zoom button will now zoom to the exact size for torrents (or the minimum window size).

This commit is contained in:
Mitchell Livingston 2006-07-13 00:24:18 +00:00
parent e548b78313
commit 0adb83c07a
1 changed files with 1 additions and 1 deletions

View File

@ -1851,7 +1851,7 @@ static void sleepCallBack(void * controller, io_service_t y,
{ {
NSRect windowRect = [fWindow frame]; NSRect windowRect = [fWindow frame];
float newHeight = windowRect.size.height - [fScrollView frame].size.height float newHeight = windowRect.size.height - [fScrollView frame].size.height
+ [fFilteredTorrents count] * ([fTableView rowHeight] + [fTableView intercellSpacing].height) + 30.0; + [fFilteredTorrents count] * ([fTableView rowHeight] + [fTableView intercellSpacing].height);
float minHeight = [fWindow minSize].height; float minHeight = [fWindow minSize].height;
if (newHeight < minHeight) if (newHeight < minHeight)