From bb0549c0ceddb69444584bcc42c31d768f7f9977 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Sun, 27 Feb 2011 14:28:58 +0000 Subject: Remove padding for scrollers in local history. svn path=/trunk/netsurf/; revision=11845 --- cocoa/LocalHistoryController.m | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'cocoa') diff --git a/cocoa/LocalHistoryController.m b/cocoa/LocalHistoryController.m index 94d70d34e..322e44d55 100644 --- a/cocoa/LocalHistoryController.m +++ b/cocoa/LocalHistoryController.m @@ -37,17 +37,11 @@ - (void) attachToView: (NSView *) view; { - const CGFloat ScrollerSpace = [NSScroller scrollerWidthForControlSize: NSSmallControlSize];; - NSDisableScreenUpdates(); ArrowWindow *box = (ArrowWindow *)[self window]; - NSSize newSize = [history size]; - newSize.width += ScrollerSpace; - newSize.height += ScrollerSpace; - - [box setContentSize: newSize]; + [box setContentSize: [history size]]; [box setArrowPosition: 50]; [history updateHistory]; [box attachToView: view]; -- cgit v1.2.3