Better center text in filter buttons.

This commit is contained in:
Mitchell Livingston 2006-07-16 03:52:10 +00:00
parent 0f851c5fd1
commit b16f93fb6d
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@
NSSize textSize = [text sizeWithAttributes: normalAttributes],
buttonSize = [self frame].size;
NSRect textRect = NSMakeRect((buttonSize.width - textSize.width) * 0.5,
(buttonSize.height - textSize.height) * 0.5, textSize.width, textSize.height);
(buttonSize.height - textSize.height) * 0.5 + 1.5, textSize.width, textSize.height);
//create normal button
[fButtonNormal lockFocus];