From efca744a3425a4b0b4c270d02560e6b7e6623a64 Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Thu, 30 Jan 2003 03:03:51 +0000 Subject: [PATCH] Removed ugly 17 pixels added to title width when computing menu sizes git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15765 72102866-910b-0410-8b05-ffd578937521 --- Source/NSMenuView.m | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Source/NSMenuView.m b/Source/NSMenuView.m index e6eb0d7e4..b14ebbe59 100644 --- a/Source/NSMenuView.m +++ b/Source/NSMenuView.m @@ -433,13 +433,12 @@ _addLeftBorderOffsetToRect(NSRect aRect, BOOL isHorizontal) - (void) sizeToFit { - unsigned i; - unsigned howMany = [_itemCells count]; - float neededImageAndTitleWidth = [_font widthOfString: - [_menu title]] + 17; - float neededKeyEquivalentWidth = 0.0; - float neededStateImageWidth = 0.0; - float accumulatedOffset = 0.0; + unsigned i; + unsigned howMany = [_itemCells count]; + float neededImageAndTitleWidth = [_font widthOfString: [_menu title]]; + float neededKeyEquivalentWidth = 0.0; + float neededStateImageWidth = 0.0; + float accumulatedOffset = 0.0; /* Set the necessary offset for the menuView. That is, how many pixels * do we need for our left side border line. For regular menus this