Ignore:
Timestamp:
Dec 14, 2009, 1:20:36 PM (13 years ago)
Author:
livings124
Message:

restore placement of priority icon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentCell.m

    r9744 r9752  
    7070
    7171- (NSRect) rectForMinimalStatusWithString: (NSAttributedString *) string inBounds: (NSRect) bounds;
    72 - (NSRect) rectForTitleWithStringBasedOnMinimalStatusRect: (NSRect) statusRect inBounds: (NSRect) bounds;
     72- (NSRect) rectForTitleWithString: (NSAttributedString *) string basedOnMinimalStatusRect: (NSRect) statusRect inBounds: (NSRect) bounds;
    7373- (NSRect) rectForProgressWithStringInBounds: (NSRect) bounds;
    7474- (NSRect) rectForStatusWithStringInBounds: (NSRect) bounds;
     
    382382    //title
    383383    NSAttributedString * titleString = [self attributedTitle];
    384     NSRect titleRect = [self rectForTitleWithStringBasedOnMinimalStatusRect: minimalStatusRect inBounds: cellFrame];
     384    NSRect titleRect = [self rectForTitleWithString: titleString basedOnMinimalStatusRect: minimalStatusRect inBounds: cellFrame];
    385385    [titleString drawInRect: titleRect];
    386386   
     
    622622}
    623623
    624 - (NSRect) rectForTitleWithStringBasedOnMinimalStatusRect: (NSRect) statusRect inBounds: (NSRect) bounds
     624- (NSRect) rectForTitleWithString: (NSAttributedString *) string basedOnMinimalStatusRect: (NSRect) statusRect inBounds: (NSRect) bounds
    625625{
    626626    const BOOL minimal = [fDefaults boolForKey: @"SmallView"];
     
    638638        result.size.width -= PRIORITY_ICON_WIDTH + PADDING_BETWEEN_TITLE_AND_PRIORITY;
    639639   
     640    result.size.width = MIN(result.size.width, [string size].width);
     641   
    640642    return result;
    641643}
Note: See TracChangeset for help on using the changeset viewer.