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:
Diffstat (limited to 'iphone/Maps/Classes/MWMActionBarButton.mm')
-rw-r--r--iphone/Maps/Classes/MWMActionBarButton.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/iphone/Maps/Classes/MWMActionBarButton.mm b/iphone/Maps/Classes/MWMActionBarButton.mm
index 7e67a3bf1a..361ec00a44 100644
--- a/iphone/Maps/Classes/MWMActionBarButton.mm
+++ b/iphone/Maps/Classes/MWMActionBarButton.mm
@@ -1,3 +1,4 @@
+#import "Common.h"
#import "MWMActionBarButton.h"
#import "MWMButton.h"
#import "UIColor+MapsMeColor.h"
@@ -95,7 +96,8 @@ NSString * titleForButton(EButton type, BOOL isSelected)
button.delegate = delegate;
button.type = type;
[view addSubview:button];
- button.autoresizingMask = UIViewAutoresizingNone;
+ if (isIOS7)
+ button.autoresizingMask = UIViewAutoresizingNone;
[button configButton:isSelected];
}