Permalink
Browse files

Resize contact view after resizing nickname field

  • Loading branch information...
1 parent 1cc09ac commit e9435ac27a6de9db61bd556dfc38406128271353 @benlangfeld committed Nov 1, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 Views/ContactView.j
View
@@ -33,7 +33,10 @@
- (void)setObjectValue:(id)aValue
{
[nickname setObjectValue:[aValue nickname]];
+ var oldNicknameBounds = [nickname boundsSize];
[nickname sizeToFit];
+ [self setFrameSize:CGSizeMake([self boundsSize].x + [nickname bounds].x - oldNicknameBounds.x, [self boundsSize].y)];
+
var s = @"";
if ([aValue XMPPStatus])
s += [aValue XMPPStatus];

0 comments on commit e9435ac

Please sign in to comment.