mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 17:52:42 +00:00
* Source/GSThemeDrawing.m (-buttonBorderForCell:style:state:):
Use the new contentRect when calculating the border for tiles git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29425 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3402d1c500
commit
4e82769c24
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-01-27 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/GSThemeDrawing.m (-buttonBorderForCell:style:state:):
|
||||
Use the new contentRect when calculating the border for tiles
|
||||
|
||||
2010-01-27 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/GSThemeTools.m: Correct implementation of contentRectForRect:
|
||||
|
|
|
@ -195,10 +195,10 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
NSSize cls = tiles->rects[TileCL].size;
|
||||
NSSize bms = tiles->rects[TileBM].size;
|
||||
|
||||
return NSMakeSize(cls.width, bms.height);
|
||||
// FIXME: We assume the button's top and right padding are the same as
|
||||
// its bottom and left.
|
||||
return NSMakeSize(tiles->contentRect.origin.x,
|
||||
tiles->contentRect.origin.y);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue