Ignore:
Timestamp:
Jul 16, 2006, 6:39:19 PM (16 years ago)
Author:
livings124
Message:

hide search filter if it overlaps filter buttons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r616 r617  
    20332033}
    20342034
     2035- (void) windowDidResize: (NSNotification *) notification
     2036{
     2037    //hide search filter if it overlaps filter buttons
     2038    NSRect buttonFrame = [fPauseFilterButton frame];
     2039    BOOL overlap = buttonFrame.origin.x + buttonFrame.size.width > [fSearchFilterField frame].origin.x;
     2040   
     2041    if (![fSearchFilterField isHidden])
     2042    {
     2043        if (overlap)
     2044            [fSearchFilterField setHidden: YES];
     2045    }
     2046    else
     2047    {
     2048        if (!overlap)
     2049            [fSearchFilterField setHidden: NO];
     2050    }
     2051}
     2052
    20352053- (void) linkHomepage: (id) sender
    20362054{
Note: See TracChangeset for help on using the changeset viewer.