From cac7a9e571613f98e6c5ba94ba0c73519d4969b2 Mon Sep 17 00:00:00 2001 From: "v.mikhaylenko" Date: Wed, 16 Sep 2015 12:17:36 +0300 Subject: [ios] Fixed bug with fullscreen compass. --- iphone/Maps/Classes/MWMDirectionView.mm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'iphone/Maps') diff --git a/iphone/Maps/Classes/MWMDirectionView.mm b/iphone/Maps/Classes/MWMDirectionView.mm index abb352adbf..d27f219b12 100644 --- a/iphone/Maps/Classes/MWMDirectionView.mm +++ b/iphone/Maps/Classes/MWMDirectionView.mm @@ -38,12 +38,13 @@ static CGFloat const kDirectionArrowSide = IPAD ? 260. : 160.; - (void)layoutSubviews { - self.frame = self.superview.bounds; + UIView * superview = self.superview; + self.frame = superview.bounds; CGSize const size = self.superview.size; self.size = size; CGFloat const minimumBorderOffset = 40.; BOOL const isLandscape = size.width > size.height; - + [superview bringSubviewToFront:self]; if (isLandscape) { CGFloat const defaultWidth = size.width - 3. * minimumBorderOffset - kDirectionArrowSide; -- cgit v1.2.3