mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
Simplify resizing a little.
This commit is contained in:
parent
dd7900192a
commit
0905436bfe
1 changed files with 3 additions and 3 deletions
|
@ -317,10 +317,10 @@
|
|||
|
||||
- (NSRect) windowWillUseStandardFrame: (NSWindow *) window defaultFrame: (NSRect) defaultFrame
|
||||
{
|
||||
NSPoint windowOrigin = [window frame].origin;
|
||||
NSSize minSize = [window minSize];
|
||||
NSRect windowRect = [window frame];
|
||||
windowRect.size.width = [window minSize].width;
|
||||
|
||||
return NSMakeRect(windowOrigin.x, windowOrigin.y, minSize.width, minSize.height);
|
||||
return windowRect;
|
||||
}
|
||||
|
||||
- (void) tabView: (NSTabView *) tabView didSelectTabViewItem: (NSTabViewItem *) tabViewItem
|
||||
|
|
Loading…
Reference in a new issue