From 0a48921e19b36e4a400b59bf6bcddaad217cc447 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Thu, 18 Jan 2007 22:09:39 +0000 Subject: [PATCH] small layout adjustment --- macosx/FileBrowserCell.m | 2 +- macosx/InfoWindowController.m | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/macosx/FileBrowserCell.m b/macosx/FileBrowserCell.m index dc56db1bb..695e6cb73 100644 --- a/macosx/FileBrowserCell.m +++ b/macosx/FileBrowserCell.m @@ -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] diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index 8dee19379..e5f287f4b 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -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; }