[iOS] Fixed height and scroll in bottom menu

https://jira.mail.ru/browse/MAPSME-13827
https://jira.mail.ru/browse/MAPSME-13821
This commit is contained in:
Alexander Boriskov 2020-05-14 18:01:33 +03:00 committed by Aleksey Belousov
parent 94748892c6
commit 856dbb3acb

View file

@ -35,7 +35,9 @@ class BottomMenuViewController: MWMViewController {
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
heightConstraint.constant = min(self.tableView.contentSize.height, self.view.height)
tableView.layoutIfNeeded()
heightConstraint.constant = min(tableView.contentSize.height, view.height)
tableView.isScrollEnabled = tableView.contentSize.height > heightConstraint.constant;
}
@IBAction func onClosePressed(_ sender: Any) {