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

@ -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
{