mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 06:30:54 +00:00
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:
parent
ba5384b986
commit
28fca687a2
2 changed files with 7 additions and 2 deletions
|
@ -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>
|
2004-08-10 02:01 Alexander Malmberg <alexander@malmberg.org>
|
||||||
|
|
||||||
* Source/GSLayoutManager.m (-usedRectForTextContainer:): Fix
|
* Source/GSLayoutManager.m (-usedRectForTextContainer:): Fix
|
||||||
|
|
|
@ -942,12 +942,12 @@
|
||||||
* The drawing code below will then center the image in imageRect.
|
* The drawing code below will then center the image in imageRect.
|
||||||
*/
|
*/
|
||||||
titleRect.origin.x = cellFrame.origin.x;
|
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.width = cellFrame.size.width;
|
||||||
titleRect.size.height = titleSize.height;
|
titleRect.size.height = titleSize.height;
|
||||||
|
|
||||||
imageRect.origin.x = cellFrame.origin.x;
|
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.width = cellFrame.size.width;
|
||||||
imageRect.size.height = NSMaxY(cellFrame) - imageRect.origin.y;
|
imageRect.size.height = NSMaxY(cellFrame) - imageRect.origin.y;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue