1
0
Fork 0
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:
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
{
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