From f9f1c0c3b30eefc18d10fe36be291aa9b8250c77 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Thu, 17 Feb 2011 17:30:36 +0000 Subject: Remove padding in arrow box. svn path=/trunk/netsurf/; revision=11709 --- cocoa/ArrowWindow.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cocoa/ArrowWindow.m b/cocoa/ArrowWindow.m index 339902782..7fb3338d0 100644 --- a/cocoa/ArrowWindow.m +++ b/cocoa/ArrowWindow.m @@ -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 ); } -- cgit v1.2.3