From 79e3c28eae8a2a830d5138359b3ec1a209441eac Mon Sep 17 00:00:00 2001 From: VladiMihaylenko Date: Fri, 29 Jan 2016 17:05:24 +0300 Subject: [PATCH] [ios] Fixed direction button frame (iOS7). --- iphone/Maps/Classes/MWMBasePlacePageView.mm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/iphone/Maps/Classes/MWMBasePlacePageView.mm b/iphone/Maps/Classes/MWMBasePlacePageView.mm index 4057996569..beef73bd9a 100644 --- a/iphone/Maps/Classes/MWMBasePlacePageView.mm +++ b/iphone/Maps/Classes/MWMBasePlacePageView.mm @@ -226,9 +226,10 @@ enum class AttributePosition CGFloat const distanceX = placePageWidth() - kLeftOffset - self.distanceLabel.width; CGFloat const directionX = distanceX - kOffsetFromDistanceToArrow - kDirectionArrowSide; CGFloat const y = getY(position); - self.directionArrow.center = {directionX + kDirectionArrowSide / 2, y}; + CGPoint const center = {directionX + kDirectionArrowSide / 2, y}; + self.directionArrow.center = center; + self.directionButton.origin = {center.x - self.directionButton.width / 2, center.y - self.directionButton.height / 2}; self.distanceLabel.center = {distanceX + self.distanceLabel.width / 2, self.directionArrow.center.y}; - self.directionButton.center = self.directionArrow.center; } - (void)layoutTableViewWithPosition:(AttributePosition)position