Correct small offset in drawing menu contents.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22581 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2006-03-01 08:40:18 +00:00
parent 51975bfb47
commit 552a31196a
2 changed files with 14 additions and 18 deletions

View file

@ -1,10 +1,16 @@
2006-03-01 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSMenuView.m: ([-rectOfItemAtIndex:]) Fix bug #15934 by
removing some bogus code left over from incorporating horizontal
menu.
2006-02-24 Quentin Mathe <qmathe@club-internet.fr> 2006-02-24 Quentin Mathe <qmathe@club-internet.fr>
* Source/GSToolbar.m: Fixed mismatched method return type between * Source/GSToolbar.m: Fixed mismatched method return type between
header and implementation. header and implementation.
* Source/GSToolbarView.m: Updated code to reference some external classes * Source/GSToolbarView.m: Updated code to reference some external
lazily with NSClassFromString. classes lazily with NSClassFromString.
These fixes avoids some compiler warnings. These fixes avoids some compiler warnings.
2006-02-22 23:03 Gregory John Casamento <greg_casamento@yahoo.com> 2006-02-22 23:03 Gregory John Casamento <greg_casamento@yahoo.com>

View file

@ -911,19 +911,9 @@ _addLeftBorderOffsetToRect(NSRect aRect)
*/ */
if (_horizontal == NO) if (_horizontal == NO)
{ {
if (![_attachedMenu _ownedByPopUp]) theRect.origin.y
{ = _cellSize.height * ([_itemCells count] - index - 1);
theRect.origin.y theRect.origin.x = _leftBorderOffset;
= 2 + (_cellSize.height * ([_itemCells count] - index - 1));
theRect.origin.x = 1;
theRect.size.width -= 2;
}
else
{
theRect.origin.y
= _cellSize.height * ([_itemCells count] - index - 1);
theRect.origin.x = _leftBorderOffset;
}
} }
else else
{ {