Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Resize contact view after resizing nickname field

  • Loading branch information...
commit e9435ac27a6de9db61bd556dfc38406128271353 1 parent 1cc09ac
@benlangfeld authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  Views/ContactView.j
View
3  Views/ContactView.j
@@ -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];
Please sign in to comment.
Something went wrong with that request. Please try again.