small layout change

This commit is contained in:
Mitchell Livingston 2007-08-20 02:26:59 +00:00
parent 1f08d0ce52
commit 89fc445266
2 changed files with 3 additions and 2 deletions

View File

@ -730,7 +730,7 @@
NSRect frame = [window frame]; NSRect frame = [window frame];
NSView * view = [[fTabView selectedTabViewItem] view]; 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.origin.y -= difference;
frame.size.height += difference; frame.size.height += difference;

View File

@ -37,6 +37,7 @@
#define HEIGHT_STATUS 12.0 #define HEIGHT_STATUS 12.0
#define PADDING_HORIZONAL 2.0 #define PADDING_HORIZONAL 2.0
#define PADDING_ABOVE_IMAGE_REG 9.0
#define PADDING_BETWEEN_IMAGE_AND_TITLE 4.0 #define PADDING_BETWEEN_IMAGE_AND_TITLE 4.0
#define PADDING_ABOVE_TITLE 2.0 #define PADDING_ABOVE_TITLE 2.0
#define PADDING_ABOVE_MIN_STATUS 4.0 #define PADDING_ABOVE_MIN_STATUS 4.0
@ -138,7 +139,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
else else
{ {
imageSize = IMAGE_SIZE_REG; 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); result.size = NSMakeSize(imageSize, imageSize);