From 89fc4452661d08aa15d22322a2e09600e4e9a3f9 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 20 Aug 2007 02:26:59 +0000 Subject: [PATCH] small layout change --- macosx/InfoWindowController.m | 2 +- macosx/TorrentCell.m | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index b159495d0..bef15c2a3 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -730,7 +730,7 @@ NSRect frame = [window frame]; NSView * view = [[fTabView selectedTabViewItem] view]; - float difference = height - [view frame].size.height; + float difference = (height - [view frame].size.height) * [window userSpaceScaleFactor];; frame.origin.y -= difference; frame.size.height += difference; diff --git a/macosx/TorrentCell.m b/macosx/TorrentCell.m index 100bab21e..f9730ffd9 100644 --- a/macosx/TorrentCell.m +++ b/macosx/TorrentCell.m @@ -37,6 +37,7 @@ #define HEIGHT_STATUS 12.0 #define PADDING_HORIZONAL 2.0 +#define PADDING_ABOVE_IMAGE_REG 9.0 #define PADDING_BETWEEN_IMAGE_AND_TITLE 4.0 #define PADDING_ABOVE_TITLE 2.0 #define PADDING_ABOVE_MIN_STATUS 4.0 @@ -138,7 +139,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80 else { imageSize = IMAGE_SIZE_REG; - result.origin.y += (result.size.height - (imageSize + ACTION_BUTTON_HEIGHT)) * 0.5; + result.origin.y += PADDING_ABOVE_IMAGE_REG; } result.size = NSMakeSize(imageSize, imageSize);