Changeset 12115


Ignore:
Timestamp:
Mar 8, 2011, 12:20:58 AM (11 years ago)
Author:
livings124
Message:

hard-code the status bar and filter bar height, so that the max window size factors in their height

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r12046 r12115  
    117117#define ROW_HEIGHT_SMALL        22.0
    118118#define WINDOW_REGULAR_WIDTH    468.0
     119
     120#define STATUS_BAR_HEIGHT   21.0
     121#define FILTER_BAR_HEIGHT   23.0
    119122
    120123#define UPDATE_UI_SECONDS   1.0
     
    27822785            NSSize maxSize = [scrollView convertSize: [[fWindow screen] visibleFrame].size fromView: nil];
    27832786            if (!fStatusBar)
    2784                 maxSize.height -= [[fStatusBar view] frame].size.height;
    2785             if (!fFilterBar) 
    2786                 maxSize.height -= [[fFilterBar view] frame].size.height;
     2787                maxSize.height -= STATUS_BAR_HEIGHT;
     2788            if (!fFilterBar)
     2789                maxSize.height -= FILTER_BAR_HEIGHT;
    27872790            if (windowSize.height > maxSize.height)
    27882791                windowSize.height = maxSize.height;
Note: See TracChangeset for help on using the changeset viewer.