Ignore:
Timestamp:
Dec 17, 2007, 10:30:28 PM (14 years ago)
Author:
livings124
Message:

fix sizing of group labels with long file names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentCell.m

    r4183 r4191  
    5252#define PADDING_BETWEEN_BAR_AND_STATUS 2.0
    5353
    54 #define GROUP_BORDER_X -4.0
    55 #define GROUP_BORDER_Y -1.0
     54#define GROUP_BORDER_X 4.0
     55#define GROUP_BORDER_Y 1.0
    5656
    5757#define MAX_PIECES 324
     
    254254    if (groupIndex != -1)
    255255        [[[GroupsWindowController groupsController] gradientForIndex: [torrent groupValue]] fillBezierPath:
    256             [NSBezierPath bezierPathWithRoundedRect: NSInsetRect(titleRect, GROUP_BORDER_X, GROUP_BORDER_Y) radius: 7.0] angle: 90];
     256            [NSBezierPath bezierPathWithRoundedRect: NSInsetRect(titleRect, -GROUP_BORDER_X, -GROUP_BORDER_Y) radius: 7.0] angle: 90];
    257257   
    258258    [titleString drawInRect: titleRect];
     
    561561    result.size = [string size];
    562562    result.size.width = MIN(result.size.width, NSMaxX(bounds) - result.origin.x - PADDING_HORIZONAL
     563                            - ([[self representedObject] groupValue] != -1 ? GROUP_BORDER_X : 0)
    563564                            - (minimal ? PADDING_BETWEEN_TITLE_AND_MIN_STATUS + statusRect.size.width : 0));
    564565   
Note: See TracChangeset for help on using the changeset viewer.