mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 05:20:38 +00:00
* Source/GSThemeTools.m: Fix unflipped/flipped coordinates bug
in the 9-patch content rect parsing code. Add some comments. Simplify contentRectForRect: implementation. * Source/GSThemeDrawing.m (-browserHeaderDrawingRectForCell:...): Use -contentRectForRect: to get the content rect instead of incorrectly reading from ivar. Fixes broken text positioning in browser header with Nesedah theme. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37217 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c713f8cb04
commit
1411fdfa3a
3 changed files with 27 additions and 20 deletions
|
@ -1843,11 +1843,8 @@ static NSDictionary *titleTextAttributes[3] = {nil, nil, nil};
|
|||
}
|
||||
else
|
||||
{
|
||||
// FIXME: We assume the button's top and right padding are the same as
|
||||
// its bottom and left.
|
||||
return NSInsetRect(rect,
|
||||
tiles->contentRect.origin.x,
|
||||
tiles->contentRect.origin.y);
|
||||
NSRect result = [tiles contentRectForRect: rect];
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue