small layout adjustment

This commit is contained in:
Mitchell Livingston 2007-01-18 22:09:39 +00:00
parent 271badba8b
commit 0a48921e19
2 changed files with 4 additions and 2 deletions

View File

@ -43,7 +43,7 @@
paragraphStyle, NSParagraphStyleAttributeName, nil];
float textHeight = [(NSTableView *)controlView rowHeight];
NSRect textRect = NSMakeRect(NSMaxX(imageRect) + SPACE, cellFrame.origin.y + 2.0,
NSRect textRect = NSMakeRect(NSMaxX(imageRect) + SPACE, cellFrame.origin.y + 1.0,
NSMaxX(cellFrame) - NSMaxX(imageRect) - 2.0 * SPACE, textHeight);
NSAttributedString * text = [[NSAttributedString alloc] initWithString: [strings objectAtIndex: 0]

View File

@ -28,6 +28,8 @@
#define MIN_WINDOW_WIDTH 300
#define MAX_WINDOW_WIDTH 5000
#define FILE_ROW_LARGE_HEIGHT 34.0
#define TAB_INFO_IDENT @"Info"
#define TAB_ACTIVITY_IDENT @"Activity"
#define TAB_PEERS_IDENT @"Peers"
@ -784,7 +786,7 @@
{
float height = [outlineView rowHeight];
if (![[item objectForKey: @"IsFolder"] boolValue])
height = 34.0;
height = FILE_ROW_LARGE_HEIGHT;
return height;
}