mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-03 09:44:24 +03:00
Remove padding in arrow box.
svn path=/trunk/netsurf/; revision=11709
This commit is contained in:
parent
d092b9ca35
commit
f9f1c0c3b3
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user