From 2eaf50fe8ddf511bd3f3b1135965be002049ca2e Mon Sep 17 00:00:00 2001 From: Grigory Lutkov Date: Tue, 1 Dec 2015 14:59:47 +0300 Subject: [PATCH] Fixed bugs --- LGAlertView.podspec | 2 +- LGAlertView/LGAlertView.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LGAlertView.podspec b/LGAlertView.podspec index d36c7b9..7799a64 100644 --- a/LGAlertView.podspec +++ b/LGAlertView.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'LGAlertView' - s.version = '2.0.12' + s.version = '2.0.13' s.platform = :ios, '6.0' s.license = 'MIT' s.homepage = 'https://github.com/Friend-LGA/LGAlertView' diff --git a/LGAlertView/LGAlertView.m b/LGAlertView/LGAlertView.m index 4ff6059..31447fa 100644 --- a/LGAlertView/LGAlertView.m +++ b/LGAlertView/LGAlertView.m @@ -43,7 +43,7 @@ #define kLGAlertViewWidthStyleAlert (320.f - 20*2) #define kLGAlertViewWidthStyleActionSheet (320.f - 16*2) #define kLGAlertViewInnerMarginH (_style == LGAlertViewStyleAlert ? 16.f : 12.f) -#define kLGAlertViewIsCancelButtonSeparate(alertView) (alertView.style == LGAlertViewStyleActionSheet && alertView.cancelButtonOffsetY != NSNotFound && !kLGAlertViewPadAndNotForce(alertView)) +#define kLGAlertViewIsCancelButtonSeparate(alertView) (alertView.style == LGAlertViewStyleActionSheet && alertView.cancelButtonOffsetY != NSNotFound && alertView.cancelButtonOffsetY > 0.f && !kLGAlertViewPadAndNotForce(alertView)) #define kLGAlertViewButtonWidthMin 64.f #define kLGAlertViewWindowPrevious(index) (index > 0 && index < kLGAlertViewWindowsArray.count ? [kLGAlertViewWindowsArray objectAtIndex:(index-1)] : nil) #define kLGAlertViewWindowNext(index) (kLGAlertViewWindowsArray.count > index+1 ? [kLGAlertViewWindowsArray objectAtIndex:(index+1)] : nil)