Changeset 664


Ignore:
Timestamp:
Jul 22, 2006, 9:00:58 PM (16 years ago)
Author:
livings124
Message:

Zoom now works horizontally. This also gets around the problems with zoom when auto resizing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r663 r664  
    21132113- (NSRect) windowWillUseStandardFrame: (NSWindow *) window defaultFrame: (NSRect) defaultFrame
    21142114{
    2115     return [self windowFrameForAmount: [fFilteredTorrents count]];
     2115    NSRect frame = [fDefaults boolForKey: @"AutoSize"] ? [window frame]
     2116                    : [self windowFrameForAmount: [fFilteredTorrents count]];
     2117   
     2118    frame.size.width = [fDefaults boolForKey: @"SmallView"] ? [fWindow minSize].width : 450.0;
     2119    return frame;
    21162120}
    21172121
    21182122- (void) setAutoSize: (NSNotification *) notification
    21192123{
    2120     #warning will not work because of sheets
    2121     //[[fWindow standardWindowButton: NSWindowZoomButton] setEnabled: ![fDefaults boolForKey: @"AutoSize"]];
    21222124    [self setWindowSizeToFit];
    2123 }
    2124 
    2125 - (BOOL) windowShouldZoom: (NSWindow *) sender toFrame: (NSRect) newFrame
    2126 {
    2127     return ![fDefaults boolForKey: @"AutoSize"];
    21282125}
    21292126
Note: See TracChangeset for help on using the changeset viewer.