Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorv.mikhaylenko <v.mikhaylenko@corp.mail.ru>2015-09-16 12:17:36 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:06:00 +0300
commitcac7a9e571613f98e6c5ba94ba0c73519d4969b2 (patch)
treeafa4c19b2abd15c1e97b166542bfa7062f42df27 /iphone/Maps
parentacc6b874dc6a96bc4bce4ae25eed919e27013769 (diff)
[ios] Fixed bug with fullscreen compass.
Diffstat (limited to 'iphone/Maps')
-rw-r--r--iphone/Maps/Classes/MWMDirectionView.mm5
1 files changed, 3 insertions, 2 deletions
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;