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:
Marcian Lytwyn 2015-06-20 16:06:26 +00:00
parent 3d60883d2a
commit 060fca2f50
4 changed files with 164 additions and 86 deletions

View file

@ -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);
}