From 3ab470afdd500c28db2e7b46cc21126c28b8c385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F=20=D0=93=D1=80=D0=B5=D1=87=D1=83?= =?UTF-8?q?=D1=85=D0=B8=D0=BD?= Date: Thu, 19 Nov 2015 16:19:30 +0300 Subject: [PATCH] [ios] Fixed action bar layout. --- iphone/Maps/Classes/MWMiPhoneLandscapePlacePage.mm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/iphone/Maps/Classes/MWMiPhoneLandscapePlacePage.mm b/iphone/Maps/Classes/MWMiPhoneLandscapePlacePage.mm index 75cb61af81..5317c28005 100644 --- a/iphone/Maps/Classes/MWMiPhoneLandscapePlacePage.mm +++ b/iphone/Maps/Classes/MWMiPhoneLandscapePlacePage.mm @@ -170,11 +170,13 @@ typedef NS_ENUM(NSUInteger, MWMiPhoneLandscapePlacePageState) - (void)setTopBound:(CGFloat)topBound { super.topBound = topBound; - CGSize const size = self.extendedPlacePageView.superview.size; - CGFloat const height = MIN(size.width, size.height); CGRect const frame = self.extendedPlacePageView.frame; - self.extendedPlacePageView.frame = {{frame.origin.x, topBound}, {frame.size.width, height - topBound}}; - self.actionBar.maxY = height - topBound; + CGSize const size = self.extendedPlacePageView.superview.size; + CGFloat const height = MIN(size.width, size.height) - topBound; + CGFloat const width = frame.size.width; + CGFloat const actionBarHeight = self.actionBar.height; + self.extendedPlacePageView.frame = {{frame.origin.x, topBound}, {width, height}}; + self.actionBar.frame = {{0, height - actionBarHeight}, {width, actionBarHeight}}; if (self.state == MWMiPhoneLandscapePlacePageStateOpen) [self updateTargetPoint]; [self configureContentInset];