1
0
Fork 0
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:
Mitchell Livingston 2006-06-20 03:08:46 +00:00
parent dd7900192a
commit 0905436bfe

View file

@ -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