Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorv.mikhaylenko <v.mikhaylenko@corp.mail.ru>2015-06-18 17:33:16 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:52:41 +0300
commit5c142a5ca971814c035f231e76500d986510304c (patch)
treeca78d1097906811a84b906028cec755b4b7fb9e2 /iphone/Maps/Classes/MWMiPhonePortraitPlacePage.mm
parent4e8f1cc18f1a594e5cd35a7ee85937939ac3a4f2 (diff)
[ios] Fixed wrong table position in MWMBookmarkColorViewController.
Diffstat (limited to 'iphone/Maps/Classes/MWMiPhonePortraitPlacePage.mm')
-rw-r--r--iphone/Maps/Classes/MWMiPhonePortraitPlacePage.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/iphone/Maps/Classes/MWMiPhonePortraitPlacePage.mm b/iphone/Maps/Classes/MWMiPhonePortraitPlacePage.mm
index ad7fc7cc18..66a54c6d60 100644
--- a/iphone/Maps/Classes/MWMiPhonePortraitPlacePage.mm
+++ b/iphone/Maps/Classes/MWMiPhonePortraitPlacePage.mm
@@ -68,8 +68,8 @@ typedef NS_ENUM(NSUInteger, MWMiPhonePortraitPlacePageState)
return;
CGSize const size = UIScreen.mainScreen.bounds.size;
- CGFloat const width = size.width > size.height ? size.height : size.width;
- CGFloat const height = size.width > size.height ? size.width : size.height;
+ CGFloat const width = MIN(size.width, size.height);
+ CGFloat const height = MAX(size.width, size.height);
self.extendedPlacePageView.frame = CGRectMake(0., height, width, 2 * height);
[view addSubview:self.extendedPlacePageView];
self.actionBar.width = width;