diff --git a/data/resources-default/default.ui b/data/resources-default/default.ui
index 2ab18d8422..e808493d6a 100644
--- a/data/resources-default/default.ui
+++ b/data/resources-default/default.ui
@@ -1,38 +1,38 @@
-
-
-
+
+
+
-
-
-
+
+
+
-
-
+
+
-
-
+
+
-
-
-
+
+
+
-
-
-
+
+
+
diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/APIBar/MWMMapViewControlsCommon.h b/iphone/Maps/Classes/CustomViews/MapViewControls/APIBar/MWMMapViewControlsCommon.h
index e3e3da85b3..7f53f253fc 100644
--- a/iphone/Maps/Classes/CustomViews/MapViewControls/APIBar/MWMMapViewControlsCommon.h
+++ b/iphone/Maps/Classes/CustomViews/MapViewControls/APIBar/MWMMapViewControlsCommon.h
@@ -7,4 +7,4 @@ static inline NSTimeInterval framesDuration(NSTimeInterval const framesCount)
return kFrameDuration * framesCount;
}
-static CGFloat const kViewControlsOffsetToBounds = 4.0;
+static CGFloat const kViewControlsOffsetToBounds = 6;
diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuView.mm b/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuView.mm
index 6e53c6f3a7..7ec9edda7c 100644
--- a/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuView.mm
+++ b/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuView.mm
@@ -4,6 +4,7 @@
#import "MWMBottomMenuViewController.h"
#import "MWMButton.h"
#import "MWMRouter.h"
+#import "MWMSideButtons.h"
#import "MapsAppDelegate.h"
#import "UIButton+RuntimeAttributes.h"
#import "UIColor+MapsMeColor.h"
@@ -159,12 +160,19 @@ CGFloat constexpr kTimeWidthRegular = 128;
completion:^(BOOL finished) {
[self updateVisibility];
}];
- ((EAGLView *)self.superview).widgetsManager.bottomBound = self.mainButtonsHeight.constant;
+ [self noftifyBottomBoundChange];
[self updateFonts];
[self updateHeightProfile];
[super layoutSubviews];
}
+- (void)noftifyBottomBoundChange
+{
+ CGFloat const height = self.superview.height - self.mainButtonsHeight.constant;
+ [MWMMapWidgets widgetsManager].bottomBound = height;
+ [MWMSideButtons buttons].bottomBound = height;
+}
+
- (void)updateAlphaAndColor
{
switch (self.state)
diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.h b/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.h
index 78f5fdd509..457e86bbbf 100644
--- a/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.h
+++ b/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.h
@@ -17,10 +17,12 @@
@interface MWMBottomMenuViewController : UIViewController
++ (MWMBottomMenuViewController *)controller;
+
@property(nonatomic) MWMBottomMenuState state;
@property(weak, nonatomic) IBOutlet MWMButton * p2pButton;
@property(nonatomic) CGFloat leftBound;
-@property(nonatomic, readonly) CGFloat mainButtonsHeight;
+@property(nonatomic, readonly) CGFloat mainStateHeight;
- (instancetype)initWithParentController:(MapViewController *)controller
delegate:(id)delegate;
diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.mm b/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.mm
index 847785102c..d29c8ce891 100644
--- a/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.mm
+++ b/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.mm
@@ -52,6 +52,12 @@ typedef NS_ENUM(NSUInteger, MWMBottomMenuViewCell) {
MWMBottomMenuViewCellCount
};
+@interface MWMMapViewControlsManager ()
+
+@property(nonatomic) MWMBottomMenuViewController * menuController;
+
+@end
+
@interface MWMBottomMenuViewController ()
@property(weak, nonatomic) MapViewController * controller;
@@ -87,10 +93,17 @@ typedef NS_ENUM(NSUInteger, MWMBottomMenuViewCell) {
@property(weak, nonatomic) IBOutlet NSLayoutConstraint * routingProgress;
@property(weak, nonatomic) IBOutlet MWMButton * ttsSoundButton;
+@property(weak, nonatomic) IBOutlet NSLayoutConstraint * mainButtonsHeight;
+
@end
@implementation MWMBottomMenuViewController
++ (MWMBottomMenuViewController *)controller
+{
+ return [MWMMapViewControlsManager manager].menuController;
+}
+
- (instancetype)initWithParentController:(MapViewController *)controller
delegate:(id)delegate
{
@@ -577,4 +590,5 @@ typedef NS_ENUM(NSUInteger, MWMBottomMenuViewCell) {
[self ttsButtonStatusChanged:nil];
}
+- (CGFloat)mainStateHeight { return self.mainButtonsHeight.constant; }
@end
diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.xib b/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.xib
index 58565e2d2e..9475e04400 100644
--- a/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.xib
+++ b/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.xib
@@ -1,7 +1,11 @@
-
+
+
+
+
-
+
+
@@ -14,6 +18,7 @@
+
@@ -32,8 +37,10 @@
+
+
+
-
+
+
+
@@ -95,14 +109,17 @@
+
+
+
+
+
+
+
+
@@ -260,14 +291,17 @@
+
+
@@ -335,6 +369,7 @@
+
@@ -391,6 +427,7 @@
+
@@ -400,6 +437,7 @@
+
@@ -411,8 +449,10 @@
+
+
+
@@ -284,11 +304,11 @@
-
+
-
+
diff --git a/iphone/Maps/Classes/MWMPlacePageManager.mm b/iphone/Maps/Classes/MWMPlacePageManager.mm
index a9ca96b86b..e58b56ec15 100644
--- a/iphone/Maps/Classes/MWMPlacePageManager.mm
+++ b/iphone/Maps/Classes/MWMPlacePageManager.mm
@@ -10,6 +10,7 @@
#import "MWMPlacePageData.h"
#import "MWMPlacePageLayout.h"
#import "MWMRouter.h"
+#import "MWMSideButtons.h"
#import "MWMStorage.h"
#import "MWMViewController.h"
#import "MapViewController.h"
@@ -134,8 +135,7 @@
- (void)onPlacePageTopBoundChanged:(CGFloat)bound
{
- [[MWMMapViewControlsManager manager]
- dragPlacePage:{{0, self.ownerViewController.view.height - bound}, {}}];
+ [[MWMSideButtons buttons] setBottomBound:self.ownerViewController.view.height - bound];
}
- (void)shouldDestroyLayout
diff --git a/iphone/Maps/Classes/Widgets/MWMMapWidgets.mm b/iphone/Maps/Classes/Widgets/MWMMapWidgets.mm
index 7a68d280ea..05926faaad 100644
--- a/iphone/Maps/Classes/Widgets/MWMMapWidgets.mm
+++ b/iphone/Maps/Classes/Widgets/MWMMapWidgets.mm
@@ -59,15 +59,10 @@
{
case gui::WIDGET_RULER:
case gui::WIDGET_COPYRIGHT:
- pivot -= m2::PointF(0.0, self.bottomBound * self.visualScale);
+ pivot -= m2::PointF(0.0, ([MapViewController controller].view.height - self.bottomBound) *
+ self.visualScale);
break;
case gui::WIDGET_COMPASS:
- {
- CGFloat const compassBottomBound =
- self.bottomBound + [MWMNavigationDashboardManager manager].extraCompassBottomOffset;
- pivot += m2::PointF(self.leftBound, -compassBottomBound) * self.visualScale;
- break;
- }
case gui::WIDGET_SCALE_LABEL:
case gui::WIDGET_CHOOSE_POSITION_MARK: break;
}