mirror of
https://github.com/transmission/transmission
synced 2025-02-22 06:00:41 +00:00
Don't allow window zooming if set to auto resize.
This commit is contained in:
parent
c0004c7e96
commit
3f160243da
1 changed files with 4 additions and 0 deletions
|
@ -2120,6 +2120,10 @@ static void sleepCallBack(void * controller, io_service_t y,
|
||||||
|
|
||||||
- (NSRect) windowWillUseStandardFrame: (NSWindow *) window defaultFrame: (NSRect) defaultFrame
|
- (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];
|
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);
|
+ [fFilteredTorrents count] * ([fTableView rowHeight] + [fTableView intercellSpacing].height);
|
||||||
|
|
Loading…
Reference in a new issue