mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 07:00:47 +00:00
Merge additional code to fix tab drawing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38659 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3d60883d2a
commit
060fca2f50
4 changed files with 164 additions and 86 deletions
|
@ -194,7 +194,15 @@
|
|||
[NSColor controlTextColor], NSForegroundColorAttributeName,
|
||||
nil];
|
||||
|
||||
[string drawInRect: tabRect withAttributes: attr];
|
||||
{
|
||||
NSSize size = [string sizeWithAttributes: attr];
|
||||
NSRect labelRect = tabRect;
|
||||
|
||||
labelRect.origin.y = tabRect.origin.y + ((tabRect.size.height - size.height) / 2);
|
||||
labelRect.size.height = size.height;
|
||||
|
||||
[string drawInRect: labelRect withAttributes: attr];
|
||||
}
|
||||
RELEASE(attr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue