Skip to content
Browse files

a reasonable -sizeThatFits: for TUIButton

  • Loading branch information...
1 parent cabfe19 commit 26b877fb669bd3fc9916cf5369bd597f6cc2d72c @joshaber joshaber committed May 17, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/UIKit/TUIButton.m
View
4 lib/UIKit/TUIButton.m
@@ -155,6 +155,10 @@ static CGRect ButtonRectCenteredInRect(CGRect a, CGRect b)
return r;
}
+- (CGSize)sizeThatFits:(CGSize)size {
+ return self.currentImage.size;
+}
+
- (void)drawRect:(CGRect)r
{

0 comments on commit 26b877f

Please sign in to comment.
Something went wrong with that request. Please try again.