diff options
author | Ilya Grechuhin <i.grechuhin@gmail.com> | 2016-06-22 09:22:02 +0300 |
---|---|---|
committer | Ilya Grechuhin <i.grechuhin@gmail.com> | 2016-06-22 09:22:02 +0300 |
commit | b85e97682e20246afe4520b119e1c8049c9c12fe (patch) | |
tree | fd87211cc06a5bff2a1164488c0fdc0c75cfb0ec /iphone/Maps/Classes/CustomViews/MapViewControls/SideButtons/MWMSideButtonsView.mm | |
parent | 6c4a0849cd8c6d588029e70b6eea32b5fd679ce8 (diff) |
[ios] Operation priority fix.
Diffstat (limited to 'iphone/Maps/Classes/CustomViews/MapViewControls/SideButtons/MWMSideButtonsView.mm')
-rw-r--r-- | iphone/Maps/Classes/CustomViews/MapViewControls/SideButtons/MWMSideButtonsView.mm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/SideButtons/MWMSideButtonsView.mm b/iphone/Maps/Classes/CustomViews/MapViewControls/SideButtons/MWMSideButtonsView.mm index 91f0be43e3..24db36133a 100644 --- a/iphone/Maps/Classes/CustomViews/MapViewControls/SideButtons/MWMSideButtonsView.mm +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/SideButtons/MWMSideButtonsView.mm @@ -93,9 +93,8 @@ namespace { [self layoutYPosition]; CGFloat const statusBarHeight = [UIApplication sharedApplication].statusBarFrame.size.height; - CGFloat const spaceLeft = - self.bottomBound - self.topBound - equalScreenDimensions(self.topBound, 0.0) ? statusBarHeight - : 0.0; + CGFloat const spaceLeft = self.bottomBound - self.topBound - + (equalScreenDimensions(self.topBound, 0.0) ? statusBarHeight : 0.0); BOOL const isZoomHidden = self.zoomIn.alpha == 0.0; BOOL const willZoomHide = (self.defaultBounds.size.height > spaceLeft); if (willZoomHide) |