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:
parent
e548b78313
commit
0adb83c07a
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue