Fix for mis-sized sizeToFit in CPButton.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I committed 2009-05-19 12:22:15 -07:00
1 parent 8f8e2343a0
commit 4758154014
1 file changed
+1 -1
+1 -1
View File
@@ -483,7 +483,7 @@ CPButtonStateMixed = CPThemeState("mixed");
*/
- (void)sizeToFit
{
var size = [([self title] || " ") sizeWithFont:[self currentValueForThemeAttribute:@"font"]],//[self font]],
var size = [([self title] || " ") sizeWithFont:[self currentValueForThemeAttribute:@"font"]],
contentInset = [self currentValueForThemeAttribute:@"content-inset"],
minSize = [self currentValueForThemeAttribute:@"min-size"],
maxSize = [self currentValueForThemeAttribute:@"max-size"];