Remove padding in arrow box.

svn path=/trunk/netsurf/; revision=11709
This commit is contained in:
Sven Weidauer 2011-02-17 17:30:36 +00:00
parent d092b9ca35
commit f9f1c0c3b3
1 changed files with 4 additions and 4 deletions

View File

@ -62,12 +62,12 @@
[self setFrame: frame display: YES];
}
static const CGFloat padding = 4;
static const CGFloat padding = 0;
- (NSRect) contentRectForFrameRect: (NSRect)frameRect;
{
const CGFloat arrowSize = [box arrowSize];
const CGFloat offset = 2 * ( 2 + padding + arrowSize );
const CGFloat offset = 2 * (padding + arrowSize );
return NSInsetRect( frameRect, offset, offset );
}
@ -75,7 +75,7 @@ static const CGFloat padding = 4;
- (NSRect) frameRectForContentRect: (NSRect)contentRect;
{
const CGFloat arrowSize = [box arrowSize];
const CGFloat offset = -2 * ( 2 + padding + arrowSize );
const CGFloat offset = -2 * (padding + arrowSize );
return NSInsetRect( contentRect, offset, offset );
}
@ -83,7 +83,7 @@ static const CGFloat padding = 4;
+ (NSRect) frameRectForContentRect: (NSRect)cRect styleMask: (NSUInteger)aStyle;
{
const CGFloat DefaultArrowSize = 15;
const CGFloat offset = -2 * (2 + padding + DefaultArrowSize);
const CGFloat offset = -2 * (padding + DefaultArrowSize);
return NSInsetRect( cRect, offset, offset );
}