diff options
author | v.mikhaylenko <v.mikhaylenko@corp.mail.ru> | 2015-06-24 20:00:19 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:52:57 +0300 |
commit | 34b7fe425e27cff86f362ac32b4827a6381eee38 (patch) | |
tree | 945c6cec4247cf12499e49645be96cd7f721cbaa /iphone/Maps/Classes/MWMiPadPlacePage.mm | |
parent | 0adffd4fe813c40ccaa69175b87a458a1e2cde53 (diff) |
[ios] Fixed iPad layout bugs.
Diffstat (limited to 'iphone/Maps/Classes/MWMiPadPlacePage.mm')
-rw-r--r-- | iphone/Maps/Classes/MWMiPadPlacePage.mm | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/iphone/Maps/Classes/MWMiPadPlacePage.mm b/iphone/Maps/Classes/MWMiPadPlacePage.mm index 02eeefaf60..7760f0d8a1 100644 --- a/iphone/Maps/Classes/MWMiPadPlacePage.mm +++ b/iphone/Maps/Classes/MWMiPadPlacePage.mm @@ -57,7 +57,6 @@ static CGFloat const kBottomOffset = 12.; [self setNavigationBarHidden:YES]; [self.navigationBar setTranslucent:NO]; self.view.autoresizingMask = UIViewAutoresizingNone; - [self configureShadow]; return self; } @@ -66,17 +65,6 @@ static CGFloat const kBottomOffset = 12.; [self popViewControllerAnimated:YES]; } -- (void)configureShadow -{ - CALayer * layer = self.view.layer; - layer.masksToBounds = NO; - layer.shadowColor = UIColor.blackColor.CGColor; - layer.shadowRadius = 4.; - layer.shadowOpacity = 0.24f; - layer.shadowOffset = CGSizeMake(0., - 2.); - layer.shouldRasterize = YES; -} - - (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated { viewController.view.frame = self.view.bounds; @@ -87,7 +75,7 @@ static CGFloat const kBottomOffset = 12.; @interface MWMiPadPlacePage () -@property (strong, nonatomic) MWMiPadNavigationController * navigationController; +@property (nonatomic) MWMiPadNavigationController * navigationController; @property (nonatomic) CGFloat height; @end @@ -100,6 +88,7 @@ static CGFloat const kBottomOffset = 12.; CGFloat const defaultWidth = 360.; [self updatePlacePageLayout]; + [self addPlacePageShadowToView:self.navigationController.view]; [self.manager addSubviews:@[self.navigationController.view] withNavigationController:self.navigationController]; self.navigationController.view.frame = CGRectMake( -defaultWidth, self.topBound + kTopOffset, defaultWidth, self.height); |