Move text back down 2 point in NSImageAbove case.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19865 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2004-08-11 19:39:32 +00:00
parent 36f5227473
commit f28c2b56c5
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-08-11 21:35 Alexander Malmberg <alexander@malmberg.org>
* Source/NSButtonCell.m (-drawInteriorWithFrame:inView:): Move
text back down by 2 points for NSImageAbove.
2004-08-10 02:01 Alexander Malmberg <alexander@malmberg.org>
* Source/GSLayoutManager.m (-usedRectForTextContainer:): Fix

View file

@ -942,12 +942,12 @@
* The drawing code below will then center the image in imageRect.
*/
titleRect.origin.x = cellFrame.origin.x;
titleRect.origin.y = cellFrame.origin.y + GSCellTextImageYDist;
titleRect.origin.y = cellFrame.origin.y;
titleRect.size.width = cellFrame.size.width;
titleRect.size.height = titleSize.height;
imageRect.origin.x = cellFrame.origin.x;
imageRect.origin.y = NSMaxY(titleRect);
imageRect.origin.y = NSMaxY(titleRect) + GSCellTextImageYDist;
imageRect.size.width = cellFrame.size.width;
imageRect.size.height = NSMaxY(cellFrame) - imageRect.origin.y;