Changeset 11796


Ignore:
Timestamp:
Jan 30, 2011, 9:34:46 PM (11 years ago)
Author:
livings124
Message:

fix icon alignment in inspector tabs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoTabButtonCell.m

    r11795 r11796  
    9292        const NSSize iconSize = [fIcon size];
    9393       
    94         const NSRect iconRect = NSMakeRect(floor((NSWidth(tabRect) - iconSize.width) * 0.5),
    95                                             floor((NSHeight(tabRect) - iconSize.height) * 0.5),
     94        const NSRect iconRect = NSMakeRect(NSMinX(tabRect) + floor((NSWidth(tabRect) - iconSize.width) * 0.5),
     95                                            NSMinY(tabRect) + floor((NSHeight(tabRect) - iconSize.height) * 0.5),
    9696                                            iconSize.width, iconSize.height);
    9797       
Note: See TracChangeset for help on using the changeset viewer.