Changeset 705


Ignore:
Timestamp:
Jul 29, 2006, 6:00:51 PM (15 years ago)
Author:
livings124
Message:

Fixed new bug from auto resizing, I hope.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r704 r705  
    21282128        + [fFilteredTorrents count] * ([fTableView rowHeight] + [fTableView intercellSpacing].height);
    21292129
    2130     float minHeight, maxHeight;
    2131     if (newHeight < (minHeight = [fWindow minSize].height))
     2130    float minHeight = [fWindow minSize].height;
     2131    if (newHeight < minHeight)
    21322132        newHeight = minHeight;
    2133     else if (newHeight > (maxHeight = [[fWindow screen] visibleFrame].size.height))
    2134         newHeight = maxHeight;
    2135     else;
     2133    else
     2134    {
     2135        float maxHeight = [[fWindow screen] visibleFrame].size.height;
     2136        if (!fStatusBarVisible)
     2137            maxHeight -= [fStatusBar frame].size.height;
     2138        if (!fFilterBarVisible)
     2139            maxHeight -= [fFilterBar frame].size.height;
     2140       
     2141        if (newHeight > maxHeight)
     2142            newHeight = maxHeight;
     2143    }
    21362144
    21372145    frame.origin.y -= (newHeight - frame.size.height);
Note: See TracChangeset for help on using the changeset viewer.