]> git.saurik.com Git - cydia.git/commitdiff
On 2.x I have this funny status bar offset.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 8 Mar 2011 18:59:16 +0000 (10:59 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 8 Mar 2011 18:59:16 +0000 (10:59 -0800)
MobileCydia.mm

index 23a9402964a7e3e86f0bffdf3a8bbc26a57b6fbd..58fcd0726698182caa983e28c52646ecc000c72e 100644 (file)
@@ -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];
 }