Fix layout of table views vs. nav bar.

This commit is contained in:
Matthew Chen 2017-11-17 09:51:37 -05:00
parent 334cecf5a0
commit 089e4a4a02
2 changed files with 6 additions and 4 deletions

View file

@ -257,13 +257,13 @@ NS_ASSUME_NONNULL_BEGIN
case 0:
break;
case 1:
return [UIFont ows_regularFontWithSize:basePointSize * 2.f];
return [UIFont ows_regularFontWithSize:basePointSize + 18.f];
case 2:
return [UIFont ows_regularFontWithSize:basePointSize * 1.666f];
return [UIFont ows_regularFontWithSize:basePointSize + 12.f];
case 3:
case 4:
case 5:
return [UIFont ows_regularFontWithSize:basePointSize * 1.333f];
return [UIFont ows_regularFontWithSize:basePointSize + 6.f];
default:
OWSFail(@"%@ Unexpected jumbomoji count: %zd", self.logTag, self.displayableText.jumbomojiCount);
break;

View file

@ -398,7 +398,9 @@ NSString * const kOWSTableCellIdentifier = @"kOWSTableCellIdentifier";
#pragma clang diagnostic pop
}
[self.view addSubview:self.tableView];
[self.tableView autoPinToSuperviewEdges];
[self.tableView autoPinWidthToSuperview];
[self.tableView autoPinToTopLayoutGuideOfViewController:self withInset:0];
[self.tableView autoPinToBottomLayoutGuideOfViewController:self withInset:0];
[self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:kOWSTableCellIdentifier];
}