From 7fb3ec03e919a6d4a5c622f224c2277ace85c61f Mon Sep 17 00:00:00 2001 From: Aryan Ghassemi Date: Wed, 22 Apr 2015 20:25:52 -0700 Subject: [PATCH] Fixed is landscape issues #138 --- .../Animations/SlideNavigationContorllerAnimatorSlide.m | 2 +- SlideMenu/Source/SlideNavigationController.m | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SlideMenu/Source/Animations/SlideNavigationContorllerAnimatorSlide.m b/SlideMenu/Source/Animations/SlideNavigationContorllerAnimatorSlide.m index c694520..446cf25 100644 --- a/SlideMenu/Source/Animations/SlideNavigationContorllerAnimatorSlide.m +++ b/SlideMenu/Source/Animations/SlideNavigationContorllerAnimatorSlide.m @@ -122,7 +122,7 @@ { if (UIDeviceOrientationIsLandscape(orientation)) { - rect.origin.y = (orientation == UIDeviceOrientationLandscapeRight) ? location : location*-1; + rect.origin.y = (orientation == UIDeviceOrientationLandscapeRight) ? location*-1 : location; } else { diff --git a/SlideMenu/Source/SlideNavigationController.m b/SlideMenu/Source/SlideNavigationController.m index 2efcdba..f88e05b 100644 --- a/SlideMenu/Source/SlideNavigationController.m +++ b/SlideMenu/Source/SlideNavigationController.m @@ -537,7 +537,7 @@ static SlideNavigationController *singletonInstance; if (UIDeviceOrientationIsLandscape(orientation)) { rect.origin.x = 0; - rect.origin.y = (orientation == UIDeviceOrientationLandscapeRight) ? location : location*-1; + rect.origin.y = (orientation == UIDeviceOrientationLandscapeRight) ? location*-1 : location; } else { @@ -621,8 +621,8 @@ static SlideNavigationController *singletonInstance; if (UIDeviceOrientationIsLandscape(orientation)) { return (orientation == UIDeviceOrientationLandscapeRight) - ? rect.origin.y - : rect.origin.y*-1; + ? rect.origin.y*-1 + : rect.origin.y; } else {