diff options
author | Sven Weidauer <sven.weidauer@gmail.com> | 2011-02-17 17:30:36 +0000 |
---|---|---|
committer | Sven Weidauer <sven.weidauer@gmail.com> | 2011-02-17 17:30:36 +0000 |
commit | f9f1c0c3b30eefc18d10fe36be291aa9b8250c77 (patch) | |
tree | 707b366e01937ae00d14f672a8824de820c192fe /cocoa/ArrowWindow.m | |
parent | d092b9ca354f07a78f0e540ce7da00026f0e534a (diff) | |
download | netsurf-f9f1c0c3b30eefc18d10fe36be291aa9b8250c77.tar.gz netsurf-f9f1c0c3b30eefc18d10fe36be291aa9b8250c77.tar.bz2 |
Remove padding in arrow box.
svn path=/trunk/netsurf/; revision=11709
Diffstat (limited to 'cocoa/ArrowWindow.m')
-rw-r--r-- | cocoa/ArrowWindow.m | 8 |
1 files 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 ); } |