From 7fd48a8259a9b8db3a9b55340cc86d79885e550b Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 23 Dec 2013 18:20:02 -0800 Subject: Actually fixed the dropbar adjustments on iOS 7. --- MobileCydia.mm | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'MobileCydia.mm') diff --git a/MobileCydia.mm b/MobileCydia.mm index a78e6b0..27d397f 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -7104,7 +7104,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi else if (kCFCoreFoundationVersionNumber < 800) return [self _transitionView]; else - return [[self _transitionView] superview]; + return [[[self _transitionView] superview] superview]; } - (void) dropBar:(BOOL)animated { @@ -7122,7 +7122,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi else if (kCFCoreFoundationVersionNumber < 800) barframe.origin.y = CYStatusBarHeight(); else - barframe.origin.y = -barframe.size.height; + barframe.origin.y = -barframe.size.height + CYStatusBarHeight(); [refreshbar_ setFrame:barframe]; @@ -7130,8 +7130,11 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi [UIView beginAnimations:nil context:NULL]; CGRect viewframe = [transition frame]; - viewframe.origin.y += barframe.size.height; - viewframe.size.height -= barframe.size.height; + float adjust(barframe.size.height); + if (kCFCoreFoundationVersionNumber >= 800) + adjust -= CYStatusBarHeight(); + viewframe.origin.y += adjust; + viewframe.size.height -= adjust; [transition setFrame:viewframe]; if (animated) @@ -7156,8 +7159,11 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi [UIView beginAnimations:nil context:NULL]; CGRect viewframe = [transition frame]; - viewframe.origin.y -= barframe.size.height; - viewframe.size.height += barframe.size.height; + float adjust(barframe.size.height); + if (kCFCoreFoundationVersionNumber >= 800) + adjust -= CYStatusBarHeight(); + viewframe.origin.y -= adjust; + viewframe.size.height += adjust; [transition setFrame:viewframe]; if (animated) -- cgit v1.2.3