mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +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
|
- (NSRect) windowWillUseStandardFrame: (NSWindow *) window defaultFrame: (NSRect) defaultFrame
|
||||||
{
|
{
|
||||||
NSPoint windowOrigin = [window frame].origin;
|
NSRect windowRect = [window frame];
|
||||||
NSSize minSize = [window minSize];
|
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
|
- (void) tabView: (NSTabView *) tabView didSelectTabViewItem: (NSTabViewItem *) tabViewItem
|
||||||
|
|
Loading…
Reference in a new issue