forked from organicmaps/organicmaps
[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:
parent
94748892c6
commit
856dbb3acb
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue