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:
Richard Frith-MacDonald 2006-03-01 08:40:18 +00:00
parent 0b1ea1bbc2
commit 69672cbc88
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>
* Source/GSToolbar.m: Fixed mismatched method return type between
header and implementation.
* Source/GSToolbarView.m: Updated code to reference some external classes
lazily with NSClassFromString.
These fixes avoids some compiler warnings.
* Source/GSToolbar.m: Fixed mismatched method return type between
header and implementation.
* Source/GSToolbarView.m: Updated code to reference some external
classes lazily with NSClassFromString.
These fixes avoids some compiler warnings.
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 (![_attachedMenu _ownedByPopUp])
{
theRect.origin.y
= 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;
}
theRect.origin.y
= _cellSize.height * ([_itemCells count] - index - 1);
theRect.origin.x = _leftBorderOffset;
}
else
{