mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 21:51:55 +00:00
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:
parent
51975bfb47
commit
552a31196a
2 changed files with 14 additions and 18 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,9 +1,15 @@
|
|||
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.
|
||||
* 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>
|
||||
|
|
|
@ -910,21 +910,11 @@ _addLeftBorderOffsetToRect(NSRect aRect)
|
|||
* so we do not draw on the heavy line at origin.x = 0.
|
||||
*/
|
||||
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;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
theRect.origin.x = _cellSize.width * (index + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue