Skip to content

Commit

Permalink
a reasonable -sizeThatFits: for TUIButton
Browse files Browse the repository at this point in the history
  • Loading branch information
joshaber committed May 17, 2012
1 parent cabfe19 commit 26b877f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/UIKit/TUIButton.m
Expand Up @@ -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
{
Expand Down

0 comments on commit 26b877f

Please sign in to comment.