Changeset 6078


Ignore:
Timestamp:
Jun 8, 2008, 1:27:49 AM (14 years ago)
Author:
livings124
Message:

refinement to the resizing web seeds table code

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.h

    r6077 r6078  
    6666    IBOutlet NSSegmentedControl * fPiecesControl;
    6767    BOOL fWebSeedTableHidden;
    68     float fPeerTableHeight, fWebSeedTableOrigin;
     68    float fPeerTableHeight, fWebSeedTableHeight, fWebSeedTableOrigin;
    6969   
    7070    IBOutlet FileOutlineController * fFileController;
  • trunk/macosx/InfoWindowController.m

    r6077 r6078  
    177177    fWebSeedTableHidden = NO;
    178178    fPeerTableHeight = [[fPeerTable enclosingScrollView] frame].size.height;
     179    fWebSeedTableHeight = [[fWebSeedTable enclosingScrollView] frame].size.height;
    179180    fWebSeedTableOrigin = [[fWebSeedTable enclosingScrollView] frame].origin.y;
    180181   
     
    14551456    if (hidden)
    14561457    {
    1457         float webSeedFrameMaxY = NSMaxY(webSeedFrame);
     1458        float webSeedFrameMaxY = fWebSeedTableHeight + fWebSeedTableOrigin;
    14581459        peerFrame.size.height = webSeedFrameMaxY - peerFrame.origin.y;
    14591460       
     
    14651466        peerFrame.size.height = fPeerTableHeight;
    14661467       
    1467         webSeedFrame.size.height = webSeedFrame.origin.y - fWebSeedTableOrigin;
     1468        webSeedFrame.size.height = fWebSeedTableHeight;
    14681469        webSeedFrame.origin.y = fWebSeedTableOrigin;
    1469     }
     1470    }NSLog(@"%f", webSeedFrame.size.height);
    14701471   
    14711472    //actually resize tables
Note: See TracChangeset for help on using the changeset viewer.