Skip to content

Commit

Permalink
Merge pull request #2629 from wordpress-mobile/issue/2558-settings-ro…
Browse files Browse the repository at this point in the history
…w-height-changes-unexpectedly

Explicitly setting the SettingsVC tableView rowHeight
  • Loading branch information
astralbodies committed Oct 22, 2014
2 parents d58b901 + c93c06b commit 555b3f8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ - (id)init
- (void)viewDidLoad
{
[super viewDidLoad];

[self.tableView setEstimatedRowHeight:50.f];
[self.tableView setRowHeight:UITableViewAutomaticDimension];

[WPStyleGuide configureColorsForView:self.view andTableView:self.tableView];
[self loadLogFiles];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ - (void)viewDidLoad
{
[super viewDidLoad];

[self.tableView setEstimatedRowHeight:50.f];
[self.tableView setRowHeight:UITableViewAutomaticDimension];

self.title = NSLocalizedString(@"Settings", @"App Settings");
self.doneButton = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"Done", @"") style:[WPStyleGuide barButtonStyleForBordered] target:self action:@selector(dismiss)];
self.navigationItem.rightBarButtonItem = self.doneButton;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ - (id)init
- (void)viewDidLoad
{
[super viewDidLoad];

[self.tableView setEstimatedRowHeight:50.f];
[self.tableView setRowHeight:UITableViewAutomaticDimension];

NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
self.feedbackEnabled = [defaults boolForKey:UserDefaultsFeedbackEnabled];
Expand Down

0 comments on commit 555b3f8

Please sign in to comment.