diff --git a/Riot/ViewController/GroupsViewController.m b/Riot/ViewController/GroupsViewController.m index 240d94a51..cbe34a7b0 100644 --- a/Riot/ViewController/GroupsViewController.m +++ b/Riot/ViewController/GroupsViewController.m @@ -83,6 +83,10 @@ // Hide line separators of empty cells self.groupsTableView.tableFooterView = [[UIView alloc] init]; + // Enable self sizing cells + self.groupsTableView.rowHeight = UITableViewAutomaticDimension; + self.groupsTableView.estimatedRowHeight = 74; + // Observe UIApplicationDidEnterBackgroundNotification to refresh bubbles when app leaves the foreground state. UIApplicationDidEnterBackgroundNotificationObserver = [[NSNotificationCenter defaultCenter] addObserverForName:UIApplicationDidEnterBackgroundNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notif) { diff --git a/Riot/Views/Group/GroupInviteTableViewCell.m b/Riot/Views/Group/GroupInviteTableViewCell.m index 627270d71..351d5f086 100644 --- a/Riot/Views/Group/GroupInviteTableViewCell.m +++ b/Riot/Views/Group/GroupInviteTableViewCell.m @@ -91,11 +91,4 @@ NSString *const kGroupInviteTableViewCellRoomKey = @"kGroupInviteTableViewCellRo [super render:cellData]; } -+ (CGFloat)heightForCellData:(MXKCellData *)cellData withMaximumWidth:(CGFloat)maxWidth -{ - // The height is fixed - // @TODO change this to support dynamic fonts - return 105; -} - @end diff --git a/Riot/Views/Group/GroupInviteTableViewCell.xib b/Riot/Views/Group/GroupInviteTableViewCell.xib index 212c2143f..09629ff56 100644 --- a/Riot/Views/Group/GroupInviteTableViewCell.xib +++ b/Riot/Views/Group/GroupInviteTableViewCell.xib @@ -1,11 +1,11 @@ - + - + @@ -13,10 +13,10 @@ - + - + @@ -28,28 +28,22 @@ -