From 856dbb3acbe38f78172bd2a63597d4fcd0a28c8c Mon Sep 17 00:00:00 2001 From: Alexander Boriskov Date: Thu, 14 May 2020 18:01:33 +0300 Subject: [PATCH] [iOS] Fixed height and scroll in bottom menu https://jira.mail.ru/browse/MAPSME-13827 https://jira.mail.ru/browse/MAPSME-13821 --- iphone/Maps/UI/BottomMenu/Menu/BottomMenuViewController.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iphone/Maps/UI/BottomMenu/Menu/BottomMenuViewController.swift b/iphone/Maps/UI/BottomMenu/Menu/BottomMenuViewController.swift index 64cb02d5af..7c9186c470 100644 --- a/iphone/Maps/UI/BottomMenu/Menu/BottomMenuViewController.swift +++ b/iphone/Maps/UI/BottomMenu/Menu/BottomMenuViewController.swift @@ -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) {