Changeset 727


Ignore:
Timestamp:
Aug 6, 2006, 7:41:44 PM (15 years ago)
Author:
livings124
Message:

Don't check if hidden...just try to hide/show.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r724 r727  
    22192219    //hide search filter if it overlaps filter buttons
    22202220    NSRect buttonFrame = [fPauseFilterButton frame];
    2221     if (NSMaxX(buttonFrame) + 2.0 > [fSearchFilterField frame].origin.x)
    2222     {
    2223         if (![fSearchFilterField isHidden])
    2224             [fSearchFilterField setHidden: YES];
    2225     }
    2226     else
    2227     {
    2228         if ([fSearchFilterField isHidden])
    2229             [fSearchFilterField setHidden: NO];
    2230     }
     2221    [fSearchFilterField setHidden: NSMaxX(buttonFrame) + 2.0 > [fSearchFilterField frame].origin.x];
    22312222}
    22322223
Note: See TracChangeset for help on using the changeset viewer.