Zoom now works horizontally. This also gets around the problems with zoom when auto resizing.
This commit is contained in:
parent
761a3928d4
commit
e4afa947d2
|
@ -2112,21 +2112,18 @@ static void sleepCallBack(void * controller, io_service_t y,
|
||||||
|
|
||||||
- (NSRect) windowWillUseStandardFrame: (NSWindow *) window defaultFrame: (NSRect) defaultFrame
|
- (NSRect) windowWillUseStandardFrame: (NSWindow *) window defaultFrame: (NSRect) defaultFrame
|
||||||
{
|
{
|
||||||
return [self windowFrameForAmount: [fFilteredTorrents count]];
|
NSRect frame = [fDefaults boolForKey: @"AutoSize"] ? [window frame]
|
||||||
|
: [self windowFrameForAmount: [fFilteredTorrents count]];
|
||||||
|
|
||||||
|
frame.size.width = [fDefaults boolForKey: @"SmallView"] ? [fWindow minSize].width : 450.0;
|
||||||
|
return frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setAutoSize: (NSNotification *) notification
|
- (void) setAutoSize: (NSNotification *) notification
|
||||||
{
|
{
|
||||||
#warning will not work because of sheets
|
|
||||||
//[[fWindow standardWindowButton: NSWindowZoomButton] setEnabled: ![fDefaults boolForKey: @"AutoSize"]];
|
|
||||||
[self setWindowSizeToFit];
|
[self setWindowSizeToFit];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) windowShouldZoom: (NSWindow *) sender toFrame: (NSRect) newFrame
|
|
||||||
{
|
|
||||||
return ![fDefaults boolForKey: @"AutoSize"];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void) setWindowSizeToFit
|
- (void) setWindowSizeToFit
|
||||||
{
|
{
|
||||||
if ([fDefaults boolForKey: @"AutoSize"])
|
if ([fDefaults boolForKey: @"AutoSize"])
|
||||||
|
|
Loading…
Reference in New Issue