From 812f9b5838e152a01908638acf29207fa5a863bc Mon Sep 17 00:00:00 2001 From: Aryan Ghassemi Date: Sun, 5 Jan 2014 15:21:32 -0800 Subject: [PATCH] - Resizing shadow when viewVillLayout (fix for landscape right menu missing the shadow) --- SlideMenu/Source/SlideNavigationController.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SlideMenu/Source/SlideNavigationController.m b/SlideMenu/Source/SlideNavigationController.m index 9cbec28..bf48623 100644 --- a/SlideMenu/Source/SlideNavigationController.m +++ b/SlideMenu/Source/SlideNavigationController.m @@ -111,6 +111,8 @@ static SlideNavigationController *singletonInstance; CGRect rect = self.view.frame; self.leftMenu.view.frame = rect; self.rightMenu.view.frame = rect; + + self.view.layer.shadowPath = [UIBezierPath bezierPathWithRect:self.view.bounds].CGPath; } - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration