Permalink
Browse files

Minor bugfix

  • Loading branch information...
anagromataf committed Aug 18, 2011
1 parent 014e1d2 commit 01615116604d58fbda05b45ff8bd48ed9f34e81e
@@ -367,6 +367,7 @@ - (void)setCoverImage:(UIImage *)aCoverImage;
[coverImage release];
[aCoverImage retain];
coverImage = aCoverImage;
+ [self.headerView setCoverImage:aCoverImage];
}
}
@@ -271,9 +271,13 @@ - (void)layoutSubviews;
fontSize);
}
+
+
CGRect logoutButtonFrame = CGRectZero;
- logoutButtonFrame.size = [self.logoutButton.titleLabel.text sizeWithFont:self.logoutButton.titleLabel.font];
- logoutButtonFrame.origin = CGPointMake(CGRectGetMaxX(self.logoutSeparator.frame) + SPACING, SPACING);
+ if (self.logoutButton.titleLabel.text) {
+ logoutButtonFrame.size = [self.logoutButton.titleLabel.text sizeWithFont:self.logoutButton.titleLabel.font];
+ logoutButtonFrame.origin = CGPointMake(CGRectGetMaxX(self.logoutSeparator.frame) + SPACING, SPACING);
+ }
self.logoutButton.frame = logoutButtonFrame;
self.firstHR.frame = CGRectMake(0, CGRectGetMaxY(self.avatarImageView.frame) + SPACING, CGRectGetWidth(self.bounds), 2.0);

0 comments on commit 0161511

Please sign in to comment.