Browse Source

VLCSettingsController: Set cell height to UITableViewAutomaticDimension

This will allow dynamic cell resizing height for verbose languages like german

Closes #672
Andy Woerner 5 years ago
parent
commit
05016600e3
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Sources/VLCSettingsController.m

+ 5 - 0
Sources/VLCSettingsController.m

@@ -223,6 +223,11 @@ NSString * const kVLCSectionTableHeaderViewIdentifier = @"VLCSectionTableHeaderV
     }
 }
 
+- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
+{
+    return UITableViewAutomaticDimension;
+}
+
 - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
 {
     return nil;