From: Jay Freeman (saurik) Date: Tue, 8 Mar 2011 18:59:16 +0000 (-0800) Subject: On 2.x I have this funny status bar offset. X-Git-Tag: v1.1.0%b2~8 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/2e35f65ff2021b7acd80bf9716d35cf526c69de5?hp=57daa971cb88b48e747968e4279b195fc199c4c8 On 2.x I have this funny status bar offset. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 23a94029..58fcd072 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -5747,6 +5747,9 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { CGRect viewframe = [[base view] convertRect:[list_ frame] fromView:[list_ superview]]; CGRect intersection = CGRectIntersection(viewframe, kbframe); + if (kCFCoreFoundationVersionNumber < kCFCoreFoundationVersionNumber_iPhoneOS_3_0) // XXX: _UIApplicationLinkedOnOrAfter(4) + intersection.size.height += CYStatusBarHeight([self interfaceOrientation]); + [self resizeForKeyboardBounds:intersection duration:duration curve:curve]; }