From 66dd3cccff1d5d25f6554406f65f3d1f45f50147 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: Tue, 10 Nov 2015 13:32:06 +0300 Subject: [PATCH] [ios] Fixed place page layout. --- .../MWMBookmarkDescriptionViewController.xib | 21 +++++----- .../Classes/MWMiPhonePortraitPlacePage.mm | 3 +- iphone/Maps/Classes/PlacePageBookmarkCell.xib | 39 ++++++++----------- 3 files changed, 28 insertions(+), 35 deletions(-) diff --git a/iphone/Maps/Classes/MWMBookmarkDescriptionViewController.xib b/iphone/Maps/Classes/MWMBookmarkDescriptionViewController.xib index c2186c41fb..8a8a59029b 100644 --- a/iphone/Maps/Classes/MWMBookmarkDescriptionViewController.xib +++ b/iphone/Maps/Classes/MWMBookmarkDescriptionViewController.xib @@ -8,7 +8,6 @@ - @@ -19,7 +18,7 @@ - + @@ -30,7 +29,7 @@ - + @@ -42,14 +41,14 @@ - - - - - - - - + + + + + + + + diff --git a/iphone/Maps/Classes/MWMiPhonePortraitPlacePage.mm b/iphone/Maps/Classes/MWMiPhonePortraitPlacePage.mm index 5fba16efdc..98b3da9af0 100644 --- a/iphone/Maps/Classes/MWMiPhonePortraitPlacePage.mm +++ b/iphone/Maps/Classes/MWMiPhonePortraitPlacePage.mm @@ -163,8 +163,7 @@ typedef NS_ENUM(NSUInteger, MWMiPhonePortraitPlacePageState) BOOL const isLandscape = size.width > size.height; CGFloat const width = isLandscape ? size.height : size.width; CGFloat const height = isLandscape ? size.width : size.height; - CGFloat const gapHeight = -8.; - return {width / 2, height + self.topY + (self.isHover ? 0 : gapHeight)}; + return {width / 2, height + self.topY}; } - (CGPoint)getHoverTargetPoint diff --git a/iphone/Maps/Classes/PlacePageBookmarkCell.xib b/iphone/Maps/Classes/PlacePageBookmarkCell.xib index 038992183c..c205442122 100644 --- a/iphone/Maps/Classes/PlacePageBookmarkCell.xib +++ b/iphone/Maps/Classes/PlacePageBookmarkCell.xib @@ -1,8 +1,8 @@ - + - + @@ -11,7 +11,7 @@ - + @@ -67,11 +67,15 @@ - + - + + + + + @@ -88,7 +92,7 @@ - - - - - - + @@ -126,13 +125,11 @@ - + - - + + - - @@ -140,10 +137,8 @@ - - + -